Documentation
    Preparing search index...

    Interface ShadowPipelineFactory

    What registerShadowPipeline() installs: a factory the renderer calls once per context, on the first shadowed frame — never at initialize, so a scene that never casts issues the byte-identical GL sequence it always did, and never per frame.

    interface ShadowPipelineFactory {
        create(gl: WebglContext): ShadowCasterPipeline;
    }
    Index
    • Compiles the caster program on gl. May throw SHADER_COMPILATION_FAILED (§89); the renderer catches it — §61 forbids a frame from throwing — warns once, and skips the shadow pass on that context.

      Parameters

      Returns ShadowCasterPipeline