Blockbench Reference Docs
    Preparing search index...
    interface ShadingModeOptions {
        ambient?: number;
        color?: ArrayVector3;
        faces?: ShadingModeFaces;
        lights?: [ArrayVector3, ArrayVector3];
        name?: string;
        power?: number;
        type?: string;
        [key: string]: any;
    }

    Indexable

    • [key: string]: any
    Index

    Properties

    ambient?: number

    Shade of a face that no light reaches, for directional modes

    color?: ArrayVector3

    Light colour of the environment this mode renders, multiplied with the preview scene's own colour

    Shade of each cardinal direction, for cardinal modes

    The two light directions, for directional modes. They do not need to be normalized

    name?: string

    Display name of the shading mode

    power?: number

    How much the lights contribute, for directional modes

    type?: string

    ID of the shading type that calculates the shade