public final class Material
Metallic/roughness material in linear color space. This first renderer supports opaque, untextured surfaces and emission. Example: metal = Material("steel", LinearColor(0.5f, 0.6f, 0.7f), 0.9f, 0.3f)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | baseColorbaseColor as LinearColor |
Linear base color. |
| public readonly property | doubleSideddoubleSided as Boolean |
Whether both triangle sides are visible. |
| public readonly property | emissionemission as LinearColor |
Linear emitted color. |
| public readonly property | metallicmetallic as Float |
Metallic factor in [0,1]. |
| public readonly property | namename as String |
Asset-local name. |
| public readonly property | roughnessroughness as Float |
Roughness in [0,1]. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | MaterialMaterial(name as String = "", baseColor as LinearColor = LinearColor(), metallic as Float = 0.0f, roughness as Float = 0.5f, emission as LinearColor = LinearColor(0.0f, 0.0f, 0.0f), doubleSided as Boolean = false) |
Creates an immutable material; rejects invalid factors and transparent colors. |