sandbox
Loading...
Searching...
No Matches
sbx::models::material Struct Reference

Public Member Functions

 operator material_key () const
 

Public Attributes

math::color base_color {math::color::white()}
 
std::float_t metallic_factor {1.0f}
 
std::float_t roughness_factor {1.0f}
 
std::float_t occlusion_strength {1.0f}
 
math::vector4 emissive_factor {0, 0, 0, 1}
 
std::float_t emissive_strength {1.0f}
 
std::float_t alpha_cutoff {0.9f}
 
texture_slot albedo {}
 
texture_slot normal {}
 
texture_slot metallic_roughness {}
 
texture_slot occlusion {}
 
texture_slot emissive {}
 
texture_slot height {}
 
std::float_t normal_scale {1.0f}
 
std::float_t height_offset {0.0f}
 
std::float_t height_scale {0.05f}
 
std::float_t parallax_min_layers {8.0f}
 
std::float_t parallax_max_layers {32.0f}
 
math::vector2 uv_scale {1.0f, 1.0f}
 
math::vector2 uv_offset {0.0f, 0.0f}
 
alpha_mode alpha {alpha_mode::opaque}
 
bool is_double_sided {false}
 
utility::bit_field< material_feature > features {material_feature::cast_shadow | material_feature::receive_shadow}
 

The documentation for this struct was generated from the following file: