babylon.quarks - v1.0.0
    Preparing search index...

    Interface ShaderContext

    What a batch knows at compile time that its settings do not say: whether the textures it depends on are there to be sampled.

    interface ShaderContext {
        depth: ShaderDepth | null;
        envAtlasReady: boolean;
        imageProcessing?: Readonly<IImageProcessingConfigurationDefines> | null;
        meshColors?: boolean;
        meshUV2: boolean;
    }
    Index
    depth: ShaderDepth | null

    The depth texture soft particles read, when one is attached to the renderer. Soft particles compile only with a depth texture.

    envAtlasReady: boolean

    Whether the mesh batch's reflection atlas has finished loading; it is sampled only then.

    imageProcessing?: Readonly<IImageProcessingConfigurationDefines> | null

    The scene's image processing as ImageProcessingConfiguration.prepareDefines writes it; null or left out for none. Compiled in only when the settings apply it, see ParticleSystem.applyImageProcessing.

    meshColors?: boolean

    Whether the mesh batch has vertex colours, which the particle colour is multiplied by (see ParticleSystem.instancingColors). Left out, it has none.

    meshUV2: boolean

    Whether the mesh batch has a second UV set to read for UVChannel 1.