Transparency threshold, pixels with alpha below this value will be discarded
Ambient colour will be multiplied with the ambient light level & colour
Diffuse colour will be multiplied with the diffuse texture
Optional
diffuseDiffuse texture map
Emissive colour will be added to the final colour, use for glowing materials
Optional
normalNormal texture map
Opacity, 0.0 to 1.0
Reflectivity, 0.0 to 1.0
Shininess, for size of specular highlights
Specular colour will be multiplied with the specular texture
Optional
specularSpecular texture map
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
Create a new default material with diffuse white colour, all all default properties