Skip to content

Interface: BodyMaterialOptions

Constructor options for BodyMaterial. Configures the primary light (kelvin + intensity + direction), ambient tint, vertex-color support and an optional liquid-mask texture bundle.

Properties

lightKelvin?

ts
optional lightKelvin?: number;

lightIntensity?

ts
optional lightIntensity?: number;

lightDir?

ts
optional lightDir?: number[] | Vector3;

ambientColor?

ts
optional ambientColor?: string | Color;

vertexColors?

ts
optional vertexColors?: boolean;

liquid?

ts
optional liquid?: LiquidMaskOptions;

palette?

ts
optional palette?: TerrainLevel[];

Optional terrain palette — when set, the rocky fragment shader samples its base colour from the palette (same thresholds & colours as the hex tile bands) instead of the two-tone uColorA/uColorB gradient. Non-rocky shaders ignore the palette uniforms.

Distribué sous la licence indiquée dans le dépôt.