Struct PhysicalMaterialInfo#

Struct Documentation#

struct PhysicalMaterialInfo#

Parameter struct for a PhysicalMaterial.

Public Members

Color color = Color::GRAY#

constant base color

Karana::Core::ks_ptr<const Texture> colorMap = nullptr#

base color map

float metalness = 0.0#

how metal-like the material is, between 0 and 1

Karana::Core::ks_ptr<const GrayscaleTexture> metalnessMap = nullptr#

grayscale metalness map

float roughness = 1.0#

how rough the material is, between 0 and 1

Karana::Core::ks_ptr<const GrayscaleTexture> roughnessMap = nullptr#

grayscale roughness map

Karana::Core::ks_ptr<const Texture> normalMap = nullptr#

normal map (assumes tangent space)