UnlitMaterial

A material type that renders without being affected by scene lighting.

Material Property Blending:

UnlitMaterial allows for the blending of different material properties to achieve the desired visual effect. PropertyValue and TextureResource are combined using a multiplicative blending mode. This means that the final appearance of the material is the result of multiplying the property value with the texture color. This blending mode helps in creating more dynamic and visually interesting effects by combining uniform values and detailed texture information. Allowing for flexible customization and control over the material's appearance. These properties may be represented by different data types, such as linear color and float, to accommodate various material characteristics.

Types

Link copied to clipboard
object Companion

The companion object of UnlitMaterial.

Functions

Link copied to clipboard

Gets the base color of the UnlitMaterial.

Link copied to clipboard

Gets the base color texture of the UnlitMaterial.

Link copied to clipboard

Gets the blending mode of the UnlitMaterial.

Link copied to clipboard
Link copied to clipboard
fun getDepthTest(): Boolean

Gets the state of depth testing for the UnlitMaterial.

Link copied to clipboard
fun getDepthWrite(): Boolean

Gets the state of depth writing for the UnlitMaterial.

Link copied to clipboard
fun getName(): String

Gets the name of the UnlitMaterial.

Link copied to clipboard
fun getOpacity(): Float

Gets the opacity of the UnlitMaterial.

Link copied to clipboard

Gets the fill mode for rendering polygons in the UnlitMaterial.

Link copied to clipboard
fun setBaseColor(color: Color4)

Sets the base color of the UnlitMaterial.

Link copied to clipboard

Sets the texture to be used as the base color for the UnlitMaterial.

Link copied to clipboard
fun setBlendingMode(blendingMode: BlendingMode)

Sets the blending mode of the UnlitMaterial.

Link copied to clipboard
Link copied to clipboard
fun setDepthTest(depthTest: Boolean)

Enables or disables depth testing for the UnlitMaterial.

Link copied to clipboard
fun setDepthWrite(depthWrite: Boolean)

Enables or disables depth writing for the UnlitMaterial.

Link copied to clipboard
fun setOpacity(opacity: Float)

Sets the opacity of the UnlitMaterial.

Link copied to clipboard
fun setPolygonFillMode(polygonFillMode: PolygonFillMode)

Sets the fill mode for rendering polygons in the UnlitMaterial.