AutoMovie API
    Preparing search index...

    Function applyAutoMovieInspectionShade

    • Colour every surface of a scene by an inspection shade, and return the call that brings the shade to the scene's current pose and the call that puts the scene's own materials back.

      A guide pass is applied as applyRenderMode applies it. clay gives every mesh one grey, two-sided and lit by the scene's lights, so form reads without the film's colours. faces gives every mesh one unlit colour by the side seen, grey from the front and maroon from the back, so an inverted, open or inside-out surface shows where it is. Both inspection shades keep each mesh's skinning, morphing, instancing and formation cycle, and take section planes.

      A shade made of swapped materials follows the scene by itself, so its update does nothing. The outline and pose passes hold shells and segments of their own, and their update is the pass's.

      Parameters

      Returns { restore: () => void; update: () => void }

      • restore: () => void

        Put the scene's own materials back and release the shade.

      • update: () => void

        Bring the shade to the scene as it stands now; call it after every change of the scene and before drawing.