ZPhongMaterialData

@Serializable
data class ZPhongMaterialData(var diffuse: ZColor, var ambient: ZColor, var specular: ZColor, var _shininess: Float)(source)

Represents data describing a Phong lighting model material.

These attributes are commonly used in rendering engines to achieve traditional lighting effects with ambient, diffuse, and specular components using the Blinn-Phong lighting model.

Constructors

Link copied to clipboard
constructor(diffuse: ZColor, ambient: ZColor, specular: ZColor, _shininess: Float)

Initializes a ZPhongMaterialData object with specified values for ambient, diffuse, specular colors and shininess factor.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Controls the sharpness of specular highlights.

Link copied to clipboard