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

    Interface ShaderProgram

    One compiled shader of the library: the sources in both languages and the defines, attributes, uniforms and samplers the material is built with. Built by shaderProgram from a batch's settings, so a batch and a shader validator describe the same material.

    interface ShaderProgram {
        attributes: string[];
        defines: string[];
        fragment: ShaderSources;
        name: string;
        samplers: string[];
        uniforms: string[];
        vertex: ShaderSources;
    }
    Index
    attributes: string[]

    The vertex attributes the material binds.

    defines: string[]

    The preprocessor defines, without the #define.

    fragment: ShaderSources

    The fragment shader in both languages.

    name: string

    The name the sources are registered under in Babylon's shader store, one per render mode.

    samplers: string[]

    The texture samplers the material declares.

    uniforms: string[]

    The uniforms the material declares.

    The vertex shader in both languages.