CreateRenderMaterialArgs Interface

Arguments supplied to RenderSystem.createRenderMaterial.

Properties

Name Type Description
alpha undefined | number Specifies the transparency of the material from 0.0 (fully transparent) to 1.0 (fully opaque).  
diffuse undefined | { color?: ColorDef | RgbColorProps, weight?: number } The diffuse properties of the material.  
specular undefined | { color?: ColorDef | RgbColorProps, exponent?: number, weight?: number } The specular properties of the material.  
textureMapping undefined | { mode?: Mode, texture: RenderTexture, transform?: Trans2x3, weight?: number, worldMapping?: boolean } Maps a RenderTexture image to the surfaces to which the material is applied.  

Defined in

Last Updated: 02 February, 2022