IMaterial

class wv.IMaterial()

An interface describing a material. The input and output of material operations

Properties

wv.IMaterial.ambientColor

optional

ambientColor: Color

Ambient light color contribution

wv.IMaterial.colorMap

optional

colorMap: ImageId

Base color texture map

wv.IMaterial.emissiveColor

optional

emissiveColor: Color

Color emitted by the material

wv.IMaterial.emissiveMap

optional

emissiveMap: ImageId

Emissive texture map

wv.IMaterial.faceColor

optional

faceColor: Color

Color applied to face geometry

wv.IMaterial.isPbr

optional

isPbr: boolean

Whether this material uses physically-based rendering (PBR)

wv.IMaterial.lineColor

optional

lineColor: Color

Color applied to line geometry

wv.IMaterial.linePattern

optional

linePattern: number[]

Array of dash/gap lengths defining line pattern

wv.IMaterial.linePatternLength

optional

linePatternLength: number

Total length of the line pattern

wv.IMaterial.linePatternLengthUnit

optional

linePatternLengthUnit: LinePatternLengthUnit

Unit of measurement for line pattern length

wv.IMaterial.metallic

optional

metallic: number

Metallic factor for PBR materials (0.0 = dielectric, 1.0 = metallic)

wv.IMaterial.metallicRoughnessMap

optional

metallicRoughnessMap: ImageId

Metallic and roughness values texture map

wv.IMaterial.normalMap

optional

normalMap: ImageId

Normal map for surface detail

wv.IMaterial.occlusionMap

optional

occlusionMap: ImageId

Ambient occlusion texture map

wv.IMaterial.opacity

optional

opacity: number

Material opacity (0.0 = transparent, 1.0 = opaque)

wv.IMaterial.pointColor

optional

pointColor: Color

Color applied to point geometry

wv.IMaterial.roughness

optional

roughness: number

Surface roughness for PBR materials (0.0 = mirror, 1.0 = completely rough)

wv.IMaterial.specularColor

optional

specularColor: Color

Color of specular highlights

wv.IMaterial.specularIntensity

optional

specularIntensity: number

Intensity of specular reflections

wv.IMaterial.textureFlags

optional

textureFlags: TextureFlags
wv.IMaterial.textureMatrix

optional

textureMatrix: Matrix