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> color_map = nullptr#

base color map

float metalness = 0.0#

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

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

grayscale metalness map

float roughness = 1.0#

how rough the material is, between 0 and 1

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

grayscale roughness map

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

normal map (assumes tangent space)