RenderMaterialElement.Params Class

Deprecated  in 3.6 because it is not useful to use a class - just use RenderMaterialElementParams directly instead.

Parameters used to construct a RenderMaterial. The persistent JSON representation - RenderMaterialAssetProps - is quite verbose and unwieldy. This representation simplifies it somewhat.

@see RenderMaterialElement.create and RenderMaterialElement.insert to create a RenderMaterial from parameters of this type.

Extended by

Methods

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

Properties

Name Type Description
color RgbFactorProps | undefined If defined, the color to use for surface fill or diffuse illumination, overriding the surface's own color.  
description string | undefined An optional description of this RenderMaterial  
diffuse number | undefined The surface's diffuse reflectivity from 0.0 to 1.0.  
finish number | undefined The specular exponent describing the surface's shininess, in the range 0 through 128.  
normalMap NormalMapProps & { scale?: number } | undefined Specifies a normal map to apply to the surface to simulate more surface detail than is present in the  
paletteName string A required palette name that categorizes this RenderMaterial  
patternMap TextureMapProps | undefined Specifies a texture image to map onto the surface, replacing or mixing with the surface's own color and transparency.  
reflect number | undefined Currently unused.  
reflectColor number[] | undefined Currently unused.  
specular number | undefined The surface's specular reflectivity from 0.0 to 1.0.  
specularColor RgbFactorProps | undefined The color to use for specular illumination.  
transmit number | undefined A transparency to be applied to the surface, ranging from 0 (fully opaque) to 1 (fully transparent).  

Defined in

Last Updated: 13 May, 2024