Material extras
Define extra material properties, namely texture encoding, whether to render the material’s color and render order.
The properties set here access directly Three.js material component.
More properties at THREE.js Material.
Material extras Attributes
Attribute | Type | Default | Description | Required |
---|---|---|---|---|
overrideSrc | string | '' |
Overrides the material source in all meshes of an object (e.g. a basic shape or a GLTF); Use, for example, to change the texture of a GLTF. | No |
colorSpace | string; One of: ['SRGBColorSpace', 'LinearSRGBColorSpace', 'DisplayP3ColorSpace', 'NoColorSpace'] |
'SRGBColorSpace' |
The material colorspace. | Yes |
colorWrite | boolean | True |
Whether to render the material’s color. | No |
renderOrder | number | 1 |
Allows the default rendering order of scene graph objects to be overridden. | No |
transparentOccluder | boolean | False |
If true , will set colorWrite=false and renderOrder=0 to make the material a transparent occluder. |
No |
gltfOpacity | number | 1 |
Opacity value to apply to the model. 1 is fully opaque, 0 is fully transparent. | Yes |