Material3D Type
Standard PBR material definition. Carries visual properties and texture maps, but never a shader handle. The pipeline binds the appropriate shader.
This is a struct designed for zero-allocation use in the render command hot path. Texture maps are optional; when absent, the scalar/color values apply.
Record fields
| Record Field |
Description
|
|
Base albedo color. Multiplied with albedo map if present.
|
Optional albedo/diffuse texture map.
|
|
|
Emissive color for self-illumination.
|
|
Optional emissive texture map.
|
Full Usage:
Metallic
Field type: float32
|
Metallic factor. 0 = dielectric, 1 = fully metallic.
|
|
Optional metallic texture map (typically stored in blue channel).
|
Optional normal map for surface detail.
|
|
Full Usage:
Opacity
Field type: float32
|
Opacity / alpha value. 1 = fully opaque, 0 = fully transparent.
|
Full Usage:
Roughness
Field type: float32
|
Perceptual roughness. 0 = mirror-like, 1 = fully diffuse.
|
|
Optional roughness texture map (typically stored in green channel).
|
UV tiling offset for texture coordinates.
|
Mibo.Raylib