Skip to main content

@novorender/web_app / RenderStateDynamicMaterialUnlit

Interface: RenderStateDynamicMaterialUnlit

Unlit material properties.

Extends

  • RenderStateDynamicMaterialCommon

Properties

alphaCutoff?

readonly optional alphaCutoff: number;

Cutoff factor used for alpha masking.

Default Value

0.5

Inherited from

RenderStateDynamicMaterialCommon.alphaCutoff

Defined in

@novorender/core3d/state/dynamic.ts:173


alphaMode?

readonly optional alphaMode: "BLEND" | "OPAQUE" | "MASK";

How to interpret color alpha channel.

Remarks

"OPAQUE" renders all pixels regardless of alpha value.

"MASK" renders only pixels with alpha larger or equal to alphaCutoff.

"BLEND" blends pixels with background using alpha as blending factor.

Inherited from

RenderStateDynamicMaterialCommon.alphaMode

Defined in

@novorender/core3d/state/dynamic.ts:168


baseColorFactor?

readonly optional baseColorFactor: RGBA;

Factor used directly or multiplied with baseColorTexture, if defined, for material base color.

Default Value

[1,1,1,1]

Defined in

@novorender/core3d/state/dynamic.ts:187


baseColorTexture?

readonly optional baseColorTexture: RenderStateDynamicTextureReference;

Base color texture.

Defined in

@novorender/core3d/state/dynamic.ts:190


doubleSided?

readonly optional doubleSided: boolean;

Whether to render material as double sided or not. @default: false

Inherited from

RenderStateDynamicMaterialCommon.doubleSided

Defined in

@novorender/core3d/state/dynamic.ts:158


kind

readonly kind: "unlit";

Material union discriminant.

Defined in

@novorender/core3d/state/dynamic.ts:182