The PBRMaterial class is used to define a MaterialKey. More...

#include <sc_store.h>

Public Types

enum  AlphaMode : uint32_t { Blend, Mask, Opaque }
 
enum  ChannelMapping : uint32_t { Red = 0, Green, Blue, Alpha }
 

Public Member Functions

bool operator!= (PBRMaterial const &that) const
 
bool operator== (PBRMaterial const &that) const
 
 PBRMaterial ()
 

Public Attributes

float alpha_cutoff
 
AlphaMode alpha_mode
 
Color base_color_factor
 Stored in linear color space. More...
 
Texture base_color_map
 Stored in sRGB color space. More...
 
Color emissive_factor
 Stored in linear color space. More...
 
Texture emissive_map
 
float metalness_factor
 
Texture metalness_map
 
ChannelMapping metalness_map_channel
 
float normal_factor
 
Texture normal_map
 
float occlusion_factor
 
Texture occlusion_map
 
ChannelMapping occlusion_map_channel
 
float roughness_factor
 
Texture roughness_map
 
ChannelMapping roughness_map_channel
 

Detailed Description

The PBRMaterial class is used to define a MaterialKey.

Member Enumeration Documentation

◆ AlphaMode

Enumerator
Blend 
Mask 
Opaque 

◆ ChannelMapping

Enumerator
Red 
Green 
Blue 
Alpha 

Constructor & Destructor Documentation

◆ PBRMaterial()

SC::Store::PBRMaterial::PBRMaterial ( )

Member Function Documentation

◆ operator!=()

bool SC::Store::PBRMaterial::operator!= ( PBRMaterial const &  that) const

◆ operator==()

bool SC::Store::PBRMaterial::operator== ( PBRMaterial const &  that) const

Member Data Documentation

◆ alpha_cutoff

float SC::Store::PBRMaterial::alpha_cutoff

◆ alpha_mode

AlphaMode SC::Store::PBRMaterial::alpha_mode

◆ base_color_factor

Color SC::Store::PBRMaterial::base_color_factor

Stored in linear color space.

◆ base_color_map

Texture SC::Store::PBRMaterial::base_color_map

Stored in sRGB color space.

◆ emissive_factor

Color SC::Store::PBRMaterial::emissive_factor

Stored in linear color space.

◆ emissive_map

Texture SC::Store::PBRMaterial::emissive_map

◆ metalness_factor

float SC::Store::PBRMaterial::metalness_factor

◆ metalness_map

Texture SC::Store::PBRMaterial::metalness_map

◆ metalness_map_channel

ChannelMapping SC::Store::PBRMaterial::metalness_map_channel

◆ normal_factor

float SC::Store::PBRMaterial::normal_factor

◆ normal_map

Texture SC::Store::PBRMaterial::normal_map

◆ occlusion_factor

float SC::Store::PBRMaterial::occlusion_factor

◆ occlusion_map

Texture SC::Store::PBRMaterial::occlusion_map

◆ occlusion_map_channel

ChannelMapping SC::Store::PBRMaterial::occlusion_map_channel

◆ roughness_factor

float SC::Store::PBRMaterial::roughness_factor

◆ roughness_map

Texture SC::Store::PBRMaterial::roughness_map

◆ roughness_map_channel

ChannelMapping SC::Store::PBRMaterial::roughness_map_channel