Interface ReadonlyFlatMaterial

Readonly flattened material interface for read-only property access

Hierarchy

  • ReadonlyFlatMaterial

Properties

albedoColor: undefined | PBColor4

Albedo/base color (PBR only). Default: white

alphaTest: undefined | number

Alpha test threshold (0-1). Default: 0.5

alphaTexture: ReadonlyFlatTexture

Access to the alpha texture properties (works for both PBR and Unlit materials)

bumpTexture: undefined | ReadonlyFlatTexture

Access to the bump/normal texture properties (PBR only - returns undefined for Unlit materials)

castShadows: undefined | boolean

Whether the material casts shadows. Default: true

diffuseColor: undefined | PBColor4

Diffuse color (Unlit only). Default: white

directIntensity: undefined | number

Direct light intensity (PBR only). Default: 1

emissiveColor: undefined | PBColor3

Emissive color (PBR only). Default: black

emissiveIntensity: undefined | number

Emissive intensity (PBR only). Default: 2

emissiveTexture: undefined | ReadonlyFlatTexture

Access to the emissive texture properties (PBR only - returns undefined for Unlit materials)

metallic: undefined | number

Metallic value 0-1 (PBR only). Default: 0.5

reflectivityColor: undefined | PBColor3

Reflectivity color (PBR only). Default: white

roughness: undefined | number

Roughness value 0-1 (PBR only). Default: 0.5

specularIntensity: undefined | number

Specular intensity (PBR only). Default: 1

Access to the main texture properties (works for both PBR and Unlit materials)

transparencyMode: undefined | MaterialTransparencyMode

Transparency mode (PBR only). Default: MTM_AUTO