Material#
- class vivid3d.Material#
Simplified PBR Material for physically based rendering of Meshes
- opacity#
Float in the range of 0.0 - 1.0 indicating how transparent the material is. A value of 0.0 indicates fully transparent, 1.0 is fully opaque.
- Type
(0.0-1.0), default: 1.0
- metalness#
Float in the range of 0.0 - 1.0 indicating the reflectiveness quality of the material, where 0 is completely non-reflective and 1 is completely reflective. This variable is affected by the roughness parameter as well.
- Type
(0.0-1.0), default: 0.5
- roughness#
Float in the range of 0.0 - 1.0 indicating the surface texture quality of the material, where 0 is completely smooth and 1 is completely rough. This variable affects the look of the reflection of a surface.
- Type
(0.0-1.0), default: 0.5
- emission_strength#
Positive Float indicating the self-illumination strength of the material.
- Type
Positive Float, default: 0.0
- label#
Optional name of the object, not required to be unique.
- Type
str, default: “defaultMaterial”