Base parameters used to build a fragment shader.

interface FragmentShaderInputBaseParams {
    toneMapping?: ToneMappings;
    additionalVaryings?: { type: string; name: string }[];
}

Hierarchy (View Summary)

Properties

toneMapping?: ToneMappings

Whether the shading function should apply tone mapping to the resulting color and if so, which one. Default to 'Khronos'.

additionalVaryings?: { type: string; name: string }[]

Optional additional varyings to pass from the vertex shader to the fragment shader.

Type declaration

  • type: string

    type of the varying.

  • name: string

    name of the varying.