Loading...
Searching...
No Matches
Threedim::LiveLink::material_record Struct Reference

Public Types

enum  : uint32_t {
  base_color_rgb = 1u << 0 , alpha = 1u << 1 , metallic_field = 1u << 2 , roughness_field = 1u << 3 ,
  emissive = 1u << 4
}
 

Public Member Functions

bool read (detail::reader &r)
 
void write (detail::writer &w) const
 

Public Attributes

std::string name
 
uint32_t fields {}
 
float base_color [4] {1.f, 1.f, 1.f, 1.f}
 
float metallic {1.f}
 
float roughness {1.f}
 
float emissive_factor [3] {0.f, 0.f, 0.f}
 
float emissive_strength {1.f}
 

Static Public Attributes

static constexpr std::size_t min_size = 2 + 4 + 10 * sizeof(float)
 

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