Documentation
    Preparing search index...

    Interface MaterialOptions

    The §57 render state every material constructor accepts, on top of whatever its own family member adds.

    Every field is optional and every default is documented on the property it initializes — see Material.

    interface MaterialOptions {
        blendMode?: BlendMode;
        colorWrite?: boolean;
        depthTest?: boolean;
        depthWrite?: boolean;
        opacity?: number;
        stencil?: StencilState;
        transparent?: boolean;
    }

    Hierarchy (View Summary)

    Index
    blendMode?: BlendMode

    Initial Material.blendMode; defaults to "normal".

    colorWrite?: boolean

    Initial Material.colorWrite; defaults to true.

    depthTest?: boolean

    Initial Material.depthTest; defaults to true.

    depthWrite?: boolean

    Initial Material.depthWrite; defaults to true.

    opacity?: number

    Initial Material.opacity; defaults to 1 (fully opaque).

    stencil?: StencilState

    Initial Material.stencil; defaults to undefined (no stencil test). A StencilState, which validates itself at construction.

    transparent?: boolean

    Initial Material.transparent; defaults to false.