Transparency threshold, pixels with alpha below this value will be discarded
0.0
Ambient colour will be multiplied with the ambient light level & colour
Diffuse colour will be multiplied with the diffuse texture
[1, 1, 1]
Optional
diffuseDiffuse texture map
"1 pixel white texture"
Emissive colour will be added to the final colour, use for glowing materials
Optional
normalNormal texture map
"1 pixel white texture"
Opacity, 0.0 to 1.0
1.0
Reflectivity, 0.0 to 1.0
0.0
Shininess, for size of specular highlights
20
Specular colour will be multiplied with the specular texture
[0, 0, 0]
Optional
specularSpecular texture map
"1 pixel white texture"
Return the base set of uniforms for this material
UniformSet object with all material properties
Static
BLACKStatic
BLUEStatic
CYANStatic
GREENStatic
MAGENTAStatic
REDStatic
WHITEStatic
YELLOWStatic
createCreate a new Material with a texture map loaded from a URL/filepath or Buffer
URL or filename path of texture image, or ArrayBufferView holding texture
Enable texture filtering and mipmaps (default true)
Flip the texture vertically (default false)
Extra options to pass to twgl.createTexture, see https://twgljs.org/docs/module-twgl.html#.TextureOptions
Static
createStatic
fromCreate a new material from a raw MTL material. Users are not expected to call this directly as it is used internally by the OBJ parser
Raw MTL material
Base path for locating & loading textures in MTL file
Apply texture filtering to textures, default: true
Flip the Y axis of textures, default: false
Generated using TypeDoc
Create a new default material with diffuse white colour, all all default properties