Material#
-
struct Material#
OBJ-style material definition with PBR properties.
Direct representation of .obj style material with ambient, diffuse, specular components and modern PBR extensions for metallic workflow.
Public Members
-
float Ns = 50.0f#
Specular exponent for shininess calculation.
-
float metallic = 0.0f#
Metallic factor for PBR rendering (0.0 = dielectric, 1.0 = metallic).
-
float specular = 0.0f#
Specular reflectance factor.
-
bool hasDiffuse = false#
Whether the material has a diffuse texture.
-
bool hasSpecular = false#
Whether the material has a specular texture.
-
bool hasMetallic = false#
Whether the material has a metallic texture.
-
bool hasEmissive = false#
Whether the material has an emissive texture.
-
bool hasShininess = false#
Whether the material has a shininess texture.
-
float Ns = 50.0f#