cgv
|
simple class to hold the material properties of a phong material More...
#include <surface_material.h>
Public Types | |
typedef color< float, RGB > | color_type |
used color type | |
Public Member Functions | |
surface_material (BrdfType _brdf_type=BrdfType(BT_STRAUSS_DIFFUSE+BT_STRAUSS), color_type _diffuse_reflectance=color_type(0.5f, 0.5f, 0.5f), float _roughness=0.5f, float _metalness=0.0f, float _ambient_occlusion=1.0f, color_type _emission=color_type(0, 0, 0), float _transparency=0.0f, const std::complex< float > &_propagation_slow_down=std::complex< float >(1.5f, 0.0f), float _roughness_anisotropy=0.0f, float _roughness_orientation=0.0f, color_type _specular_reflectance=color_type(1, 1, 1)) | |
construct default material | |
Protected Attributes | |
BrdfType | brdf_type |
store brdf type, defaults to BT_COOK_TORRANCE | |
color_type | diffuse_reflectance |
diffuse reflectance of surface, defaults to 0.5,0.5,0.5 | |
float | roughness |
surface roughness in the range 0,1, defaults to 0.5 | |
float | metalness |
metalness of surface | |
float | ambient_occlusion |
scalar factor to down scale ambient light, defaults to 1 | |
color_type | emission |
emissive color component, defaults to 0,0,0 | |
float | transparency |
modulation for transparency, defaults to 0 | |
std::complex< float > | propagation_slow_down |
complex fraction of complex interior over real exterior index of refraction, defaults to 1.5,0 | |
float | roughness_anisotropy |
difference of roughness matrix eigenvalues in range [0,1] relative to roughness , i.e. lambda_1 - lambda_2 = roughness_anisotropy*roughness, defaults to 0 | |
float | roughness_orientation |
orientation of roughness in range [0,1], where 0 corresponds to u-direction and 0.5 to v direction, defaults to 0 | |
color_type | specular_reflectance |
specular color used to modulate specular reflection component, should be 1,1,1 | |
simple class to hold the material properties of a phong material