Documentation
    Preparing search index...

    Function unlitShaderSource

    • The unlit WGSL module for one variant.

      Generated rather than stored as two constants so that the shared half — the uniform block, the remap, the fragment stage — is written once. The generated text is a pure function of the flag, so two calls with the same flag produce byte-identical source, which is what lets the pipeline cache key on the descriptor instead of on the string (§33's determinism rule, applied to a cache).

      Parameters

      • vertexColors: boolean
      • map: boolean = false

      Returns string