Skip to main content

@novorender/api / RenderStateDynamicMaterialUnlit

Interface: RenderStateDynamicMaterialUnlit

Defined in: @novorender/src/core3d/state/dynamic.ts:195

Unlit material properties.

Extends​

  • RenderStateDynamicMaterialCommon

Properties​

alphaCutoff?​

readonly optional alphaCutoff: number;

Defined in: @novorender/src/core3d/state/dynamic.ts:189

Cutoff factor used for alpha masking.

Default Value​

0.5

Inherited from​

RenderStateDynamicMaterialCommon.alphaCutoff

alphaMode?​

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

Defined in: @novorender/src/core3d/state/dynamic.ts:184

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

baseColorFactor?​

readonly optional baseColorFactor: RGBA;

Defined in: @novorender/src/core3d/state/dynamic.ts:203

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

Default Value​

[1,1,1,1]


baseColorTexture?​

readonly optional baseColorTexture: RenderStateDynamicTextureReference;

Defined in: @novorender/src/core3d/state/dynamic.ts:206

Base color texture.


doubleSided?​

readonly optional doubleSided: boolean;

Defined in: @novorender/src/core3d/state/dynamic.ts:174

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

Inherited from​

RenderStateDynamicMaterialCommon.doubleSided

kind​

readonly kind: "unlit";

Defined in: @novorender/src/core3d/state/dynamic.ts:198

Material union discriminant.