Material

Variables

Name

Type

Description

diffuseTexture

Texture

The diffuse texture.

normalTexture

Texture

The normal texture.

metalnessTexture

Texture

The metalness texture.

roughnessTexture

Texture

The roughness texture.

occlusionTexture

Texture

The occlusion texture.

emissiveTexture

Texture

The emissive texture.

emissiveFactor

float

The emissive factor to multiply the emissive texture with.

alphaCutoff

float

The alpha cutoff value to compare with the diffuse texture’s alpha channel.

indexOfRefraction

float

The index of refraction.

useTriplanarMapping

bool

If true, the Mesh’s uv are ignored and the world position is used as texture coordinates.

scaleUV

Math::vec2

The texture coordinates’ scale.

offsetUV

Math::vec2

The texture coordinates’ offset.