Generic phong material struct. More...
#include <xac_interface_scene_elements_doc.h>
Public Member Functions | |
Material_phong (const float3 &color_ambient, const float3 &color_diffuse, const float3 &color_specular, const float spec_coeff, const float mat_opacity=1.0f) | |
Constructor using predefined material parameters. More... | |
const float3 & | get_ambient () const |
Get the ambient component of the material. More... | |
const float3 & | get_diffuse () const |
Get the diffuse component of the material. More... | |
const float3 & | get_specular () const |
Get the specular component of the material. More... | |
float | get_shininess () const |
Get the shininess parameter of the Phong meterial. More... | |
float | get_opacity () const |
Get the opacity value of the material. More... | |
Generic phong material struct.
|
inline |
Constructor using predefined material parameters.
const float3 & nv::index::xac::Material_phong::get_ambient | ( | ) | const |
Get the ambient component of the material.
const float3 & nv::index::xac::Material_phong::get_diffuse | ( | ) | const |
Get the diffuse component of the material.
float nv::index::xac::Material_phong::get_opacity | ( | ) | const |
Get the opacity value of the material.
float nv::index::xac::Material_phong::get_shininess | ( | ) | const |
Get the shininess parameter of the Phong meterial.
const float3 & nv::index::xac::Material_phong::get_specular | ( | ) | const |
Get the specular component of the material.