Parameters used to declare the fragment shader variables coming from the material uniforms.

interface DeclareMaterialVarsParams {
    materialUniform?: BufferBindingBaseParams;
    materialUniformName?: string;
    shadingModel?: ShadingModels;
    environmentMap?: EnvironmentMap;
}

Properties

materialUniform?: BufferBindingBaseParams

The BufferBindingBaseParams holding the material uniform values. Will use default values if not provided.

materialUniformName?: string

The BufferBindingBaseParams name to use for variables declarations. Default to 'material'.

shadingModel?: ShadingModels

The ShadingModels to use to declare the corresponding variables. Default to 'PBR'.

environmentMap?: EnvironmentMap

EnvironmentMap to use for specific environment map variables declarations if any.

  • String with all the material variables declared.