cgv
|
Extension of a phong material with support for texture-mapped color channels. More...
#include <obj_material.h>
Public Types | |
enum | TextureType { TT_AMBIENT_TEXTURE = 1 , TT_DIFFUSE_TEXTURE = 2 , TT_OPACITY_TEXTURE = 4 , TT_SPECULAR_TEXTURE = 8 , TT_EMISSION_TEXTURE = 16 , TT_BUMP_TEXTURE = 32 , TT_ALL_TEXTURES = 63 } |
different types of textures More... | |
![]() | |
using | color_type = cgv::rgba |
Public Attributes | |
std::string | name = "default" |
name of material | |
float | opacity = 1.0f |
opacity value | |
std::string | ambient_texture_name |
file name of ambient texture | |
std::string | diffuse_texture_name |
file name of diffuse texture | |
std::string | opacity_texture_name |
file name of opacity texture | |
std::string | specular_texture_name |
file name of specular texture | |
std::string | emission_texture_name |
file name of emission texture | |
float | bump_scale = 1.0f |
scaling factor for bump map | |
std::string | bump_texture_name |
file name of bump map texture | |
![]() | |
color_type | ambient = { 0.1f, 0.1f, 0.1f, 1.0f } |
ambient color component | |
color_type | diffuse = { 0.5f, 0.5f, 0.5f, 1.0f } |
diffuse color component | |
color_type | specular = { 0.5f, 0.5f, 0.5f, 1.0f } |
specular color component | |
color_type | emission = { 0.0f, 0.0f, 0.0f, 1.0f } |
emissive color component | |
float | shininess = 50.0f |
exponent of the specular cosine term | |
Additional Inherited Members | |
![]() | |
static const phong_material & | get_default () |
provide a const reference to a standard phong material | |
Extension of a phong material with support for texture-mapped color channels.
Definition at line 11 of file obj_material.h.
different types of textures
Definition at line 14 of file obj_material.h.
std::string cgv::media::illum::obj_material::ambient_texture_name |
file name of ambient texture
Definition at line 29 of file obj_material.h.
Referenced by cgv::media::mesh::obj_reader_base::read_mtl(), and cgv::media::illum::textured_surface_material::textured_surface_material().
float cgv::media::illum::obj_material::bump_scale = 1.0f |
scaling factor for bump map
Definition at line 39 of file obj_material.h.
Referenced by cgv::media::mesh::obj_reader_base::read_mtl(), and cgv::media::illum::textured_surface_material::textured_surface_material().
std::string cgv::media::illum::obj_material::bump_texture_name |
file name of bump map texture
Definition at line 41 of file obj_material.h.
Referenced by cgv::media::mesh::obj_reader_base::read_mtl(), and cgv::media::illum::textured_surface_material::textured_surface_material().
std::string cgv::media::illum::obj_material::diffuse_texture_name |
file name of diffuse texture
Definition at line 31 of file obj_material.h.
Referenced by cgv::media::mesh::obj_reader_base::read_mtl(), and cgv::media::illum::textured_surface_material::textured_surface_material().
std::string cgv::media::illum::obj_material::emission_texture_name |
file name of emission texture
Definition at line 37 of file obj_material.h.
Referenced by cgv::media::mesh::obj_reader_base::read_mtl(), and cgv::media::illum::textured_surface_material::textured_surface_material().
std::string cgv::media::illum::obj_material::name = "default" |
name of material
Definition at line 25 of file obj_material.h.
Referenced by cgv::media::mesh::obj_reader_base::parse_obj(), cgv::media::mesh::obj_reader_base::read_mtl(), and cgv::media::illum::textured_surface_material::textured_surface_material().
float cgv::media::illum::obj_material::opacity = 1.0f |
opacity value
Definition at line 27 of file obj_material.h.
Referenced by cgv::media::mesh::obj_reader_base::read_mtl(), and cgv::media::illum::textured_surface_material::textured_surface_material().
std::string cgv::media::illum::obj_material::opacity_texture_name |
file name of opacity texture
Definition at line 33 of file obj_material.h.
Referenced by cgv::media::mesh::obj_reader_base::read_mtl(), and cgv::media::illum::textured_surface_material::textured_surface_material().
std::string cgv::media::illum::obj_material::specular_texture_name |
file name of specular texture
Definition at line 35 of file obj_material.h.
Referenced by cgv::media::mesh::obj_reader_base::read_mtl(), and cgv::media::illum::textured_surface_material::textured_surface_material().