Interface StandardMaterialProps
alpha: number;
alphaCutOff: number;
ambientColor: [number, number, number];
ambientCoordIndex: 0 | 1;
ambientTexLevel: number;
backFaceCulling: boolean;
bumpLevel: number;
diffuseColor: [number, number, number];
diffuseCoordIndex: 0 | 1;
diffuseTexture: Texture2D | null;
disableLighting: boolean;
emissiveColor: [number, number, number];
lightmapCoordIndex: 0 | 1;
lightmapLevel: number;
metadata?: LiteMetadata;
name?: string;
opacityFromRGB: boolean;
opacityLevel: number;
plugins?: MaterialPlugin[];
reflectionCoordMode: 1 | 2;
reflectionLevel: number;
specularColor: [number, number, number];
specularCoordIndex: 0 | 1;
specularPower: number;
stencil?: StencilState;
useLightmapAsShadowmap: boolean;
uvOffset?: [number, number];
uvScale: [number, number];
}
Hierarchy (View Summary)
- Material
- StandardMaterialProps
Index
Properties
Properties
alpha
alpha Cut Off
Alpha test cutoff. Fragments with alpha < alphaCutOff are discarded. Default 0 (no alpha test).
ambient Color
ambient Coord Index
Ambient texture UV channel. 0=UV1, 1=UV2. Default 0.
ambient Tex Level
Ambient texture intensity. Default 1.0.
back Face Culling
Back-face culling. Default true (BJS convention). False = double-sided.
bump Level
Bump perturbation strength. Default 1.0 (maps to 1/level in BJS).
diffuse Color
diffuse Coord Index
Diffuse texture UV channel. 0=UV1, 1=UV2. Default 0.
diffuse Texture
Optional diffuse texture. Null = solid color only.
disable Lighting
When true, skip all lighting and output emissive * diffuse * baseColor. Default false.
emissive Color
lightmap Coord Index
Lightmap UV channel. 0=UV1, 1=UV2. Default 1 (BJS convention).
lightmap Level
Lightmap intensity. Default 1.0.
Optionalmetadata
User metadata. glTF loads populate metadata.gltf.extras when source extras exist.
Optionalname
Optional human-readable name. Populated by loaders from the source asset (e.g. the glTF material name) so callers can look a material up by name.
opacity From RGB
When true, derive opacity from RGB luminance instead of .a channel. Default false.
opacity Level
Opacity texture intensity. Default 1.0.
Optionalplugins
Optional opt-in material plugins (custom WGSL + uniforms + samplers layered
on top of the built-in Standard pipeline). Attach via material.plugins = [plugin],
then call enableMaterialPlugins(scene) before registerScene.
reflection Coord Mode
Reflection coordinate mode. 1=spherical, 2=planar. Default 1.
reflection Level
Reflection intensity. Default 1.0.
specular Color
specular Coord Index
Specular texture UV channel. 0=UV1, 1=UV2. Default 0.
specular Power
Optionalstencil
Optional stencil-test state baked into the main-pass pipeline (mask write / discard). Default none.
See StencilState.
use Lightmap As Shadowmap
When true, the lightmap is a baked shadowmap that multiplies the final color
(color *= lightmap * level) instead of being added. Matches BJS
StandardMaterial.useLightmapAsShadowmap. Default false.
Optionaluv Offset
Optional UV translation applied after scale. Missing values behave as [0, 0].
uv Scale
UV tiling scale. Default [1, 1].
StandardMaterial properties — plain data.