cgv
|
Stores properties of a phong brdf material. More...
#include <phong_material.h>
Public Types | |
using | color_type = cgv::rgba |
Static Public Member Functions | |
static const phong_material & | get_default () |
provide a const reference to a standard phong material | |
Public Attributes | |
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 | |
Stores properties of a phong brdf material.
Definition at line 11 of file phong_material.h.
Definition at line 13 of file phong_material.h.
|
static |
provide a const reference to a standard phong material
Definition at line 7 of file phong_material.cxx.
color_type cgv::media::illum::phong_material::ambient = { 0.1f, 0.1f, 0.1f, 1.0f } |
ambient color component
Definition at line 16 of file phong_material.h.
Referenced by cgv::media::mesh::obj_reader_base::read_mtl(), and cgv::media::illum::textured_surface_material::textured_surface_material().
color_type cgv::media::illum::phong_material::diffuse = { 0.5f, 0.5f, 0.5f, 1.0f } |
diffuse color component
Definition at line 18 of file phong_material.h.
Referenced by cgv::media::mesh::obj_reader_base::read_mtl(), and cgv::media::illum::textured_surface_material::textured_surface_material().
color_type cgv::media::illum::phong_material::emission = { 0.0f, 0.0f, 0.0f, 1.0f } |
emissive color component
Definition at line 22 of file phong_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::phong_material::shininess = 50.0f |
exponent of the specular cosine term
Definition at line 24 of file phong_material.h.
Referenced by cgv::media::mesh::obj_reader_base::read_mtl(), and cgv::media::illum::textured_surface_material::textured_surface_material().
color_type cgv::media::illum::phong_material::specular = { 0.5f, 0.5f, 0.5f, 1.0f } |
specular color component
Definition at line 20 of file phong_material.h.
Referenced by cgv::media::mesh::obj_reader_base::read_mtl(), and cgv::media::illum::textured_surface_material::textured_surface_material().