RenderMaterialAssetProps Interface

Describes the graphical properties of a RenderMaterialElement as part of a RenderMaterialProps. This representation is used to persist the material properties into the IModelDb, but is unwieldy and verbose.

see RenderMaterialElementParams for a somewhat more ergonomic representation.

extensions

Properties

Name Type Description
HasBaseColor undefined | boolean If true, this material has a fill/diffuse color; if undefined, defaults to false  
HasDiffuse undefined | boolean If true, this material has a value for diffuse reflectivity; if undefined, defaults to false  
HasFinish undefined | boolean If true, this material has a specular exponent; if undefined, defaults to false  
HasReflect undefined | boolean If true, this material has a value for environmental reflectivity; if undefined, defaults to false  
HasReflectColor undefined | boolean If true, this material has a surface reflectance color; if undefined, defaults to false.  
HasSpecular undefined | boolean If true, this material has a value for specular reflectivity; if undefined, defaults to false.  
HasSpecularColor undefined | boolean If true, this material has a specular color; if undefined, defaults to false  
HasTransmit undefined | boolean If true, this material has surface transparency; if undefined, defaults to false  
Map undefined | RenderMaterialAssetMapsProps An optional set of texture maps associated with this material.  
color undefined | RgbFactorProps Surface color used for fill or diffuse illumination; if undefined, defaults to black  
diffuse undefined | number Surface diffuse reflectivity; if undefined, defaults to 0.6  
finish undefined | number Specular exponent (surface shininess); range is 0 to 128; if undefined, defaults to 13.5  
pbr_normal undefined | number A scale by which to multiply the components of the normals read from Map.Normal, if a normal map is defined.  
reflect undefined | number Surface environmental reflectivity; stored as fraction of specular in V8 material settings; if undefined defaults to 0.0  
reflect_color undefined | RgbFactorProps Surface reflectance color; if undefined, defaults to black  
specular undefined | number Surface specular reflectivity; if undefined, defaults to 0.4  
specular_color undefined | RgbFactorProps Surface color used for specular illumination; if undefined, defaults to black  
transmit undefined | number Surface transparency; if undefined, defaults to 0.0  

Defined in

Last Updated: 30 November, 2023