RenderMaterialElement.Params Class

Parameters used to construct a RenderMaterial.

Methods

Name Description
constructor(paletteName: string): RenderMaterialElement.Params Construct a new RenderMaterial.Params object with the specified paletteName.  

Properties

Name Type Description
color undefined | number[] If defined, use this color for surface fill or diffuse illumination; if undefined, defaults to black  
description undefined | string The optional description for this RenderMaterial  
diffuse undefined | number If defined, apply this surface diffuse reflectivity; if undefined, defaults to 0.6  
finish undefined | number If defined, apply this specular exponent(surface shininess); range is 0 to 128; if undefined, defaults to 15.0 * 0.9  
paletteName string The palette name which categorizes this RenderMaterial  
patternMap undefined | TextureMapProps If defined, specifies the pattern mapping.  
reflect undefined | number If defined, apply this surface environmental reflectivity; stored as fraction of specular in V8 material settings; if undefined, defaults to 0.0  
reflectColor undefined | number[] If defined, apply this surface reflectance color; if undefined, defaults to whatever the specularColor is  
specular undefined | number If defined, apply this surface specular reflectivity; if undefined, defaults to 0.0.  
specularColor undefined | number[] If defined, use this color for surface specular illumination; if undefined, defaults to black  
transmit undefined | number If defined, apply this surface transparency; if undefined, defaults to 0.0  

Defined in

Last Updated: 08 January, 2020