     # Loop through the panels in this anchor and set the transition duration to the new speed.
     for panel, i in @panels[@lastOp.anchor]
       panel.style[css.transitionDuration] = speed + 'ms'
-      if @shading
+      if @_shading
         for side in shaderPair
           @_shaders[@lastOp.anchor][side][i].style[css.transitionDuration] = speed + 'ms'
 

    # With hard shading, opacity is reduced and `angle` is based on the global
    # `lastAngle` so all panels' shaders share the same direction. Soft shaders
    # have alternating directions.
    if @shading is 'hard'
      opacity *= .15
      if @lastOp.angle < 0
        angle = abs

    for anchor in anchorList
      @panels[anchor] = []
      @stages[anchor] = cloneEl stageProto, false, 'stage' + capitalize anchor
      if @_shading
        @_shaders[anchor] = {}
        if anchor in anchorListV
          @_shaders[anchor][side] = [] for side in anchorListV
