Blockbench Reference Docs
    Preparing search index...
    interface ShadingTypeOptions {
        glsl: string;
        uniforms?: Record<string, ShadingUniform>;
        apply?(mode: ShadingMode, uniforms: Record<string, ShadingUniform>): void;
    }
    Index

    Methods

    Properties

    Methods

    Properties

    glsl: string

    Body that calculates the shade. N is the world space normal, and the snippet must assign to light

    uniforms?: Record<string, ShadingUniform>

    Uniforms this type needs, declared into every shader that supports shading modes