RenderMaterialAssetProps Interface

Describes the graphical properties of a RenderMaterialElement as part of a RenderMaterialProps.

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 | { Pattern?: TextureMapProps } 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 15.0 * 0.9  
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: 12 June, 2024