ZPbrMaterialData

@Serializable
data class ZPbrMaterialData(var color: ZColor, var emissive: ZColor, _emissiveIntensity: Float, _metalness: Float, _roughness: Float)(source)

Represents data describing a physically-based rendering (PBR) material.

These attributes are commonly used in rendering engines to achieve realistic material appearances under various lighting conditions.

Constructors

Link copied to clipboard
constructor(color: ZColor, emissive: ZColor, _emissiveIntensity: Float, _metalness: Float, _roughness: Float)

Initializes a ZPbrMaterialData object with specified values, clamping any out-of-range values for emissive intensity, metalness, and roughness to their valid ranges.

Properties

Link copied to clipboard

The color of the material.

Link copied to clipboard

The emissive color of the material.

Link copied to clipboard

Defines the intensity of the emissive property of a material.

Link copied to clipboard

Defines the metalness of a material.

Link copied to clipboard

Defines the roughness of a material.