Skip to main content

Module material

Module material 

Source
Expand description

PBR surface-finish material data.

MaterialData carries the surface-finish half of a PBR material (metallic/roughness). Albedo intentionally stays in the separate Color wrapper so the existing color pipeline (SDF palette, vertex colors, OpenSCAD color()) keeps working unchanged; a material preset applies both. Fields all have serde defaults so the struct can grow (reflectance, emissive, alpha mode, texture references) without breaking saved scenes.

Structs§

MaterialData
Surface-finish parameters for a PBR material, applied by the Material wrapper node.

Constants§

DEFAULT_METALLIC
Default metallic factor applied when no material is assigned.
DEFAULT_ROUGHNESS
Default perceptual roughness applied when no material is assigned.