@pixi/3d
    Preparing search index...

    Variable toonLightingBitConst Advanced

    toonLightingBit: ShaderBit = ...

    Cel-shaded lighting: quantised diffuse bands, a stepped specular highlight and a rim term

    Needs the viewDir and toon values toonMaterialBit declares, so use the two together. It's built with createLightingBit, which supplies the light loop and shadows.