|
cgv
|
>extension of a phong material with support for texture mapped color channels More...
#include <obj_material.hh>
Public Types | |
| enum | TextureType |
| > different types of textures | |
| typedef color< float, RGB, OPACITY > | color_type |
| >used color type | |
Public Member Functions | |
| obj_material () | |
| define default material | |
| void | set_opacity (float o) |
| set opacity value | |
| float | get_opacity () const |
| return opacity value | |
| float & | ref_opacity () |
| return reference to opacity value | |
| void | set_name (std::string o) |
| set name value | |
| const std::string & | get_name () const |
| return name value | |
| std::string & | ref_name () |
| return reference to name value | |
| virtual void | set_ambient_texture_name (std::string o) |
| set ambient_texture_name value | |
| const std::string & | get_ambient_texture_name () const |
| return ambient_texture_name value | |
| std::string & | ref_ambient_texture_name () |
| return reference to ambient_texture_name value | |
| virtual void | set_diffuse_texture_name (std::string o) |
| set diffuse_texture_name value | |
| const std::string & | get_diffuse_texture_name () const |
| return diffuse_texture_name value | |
| std::string & | ref_diffuse_texture_name () |
| return reference to diffuse_texture_name value | |
| virtual void | set_opacity_texture_name (std::string o) |
| set opacity_texture_name value | |
| const std::string & | get_opacity_texture_name () const |
| return opacity_texture_name value | |
| std::string & | ref_opacity_texture_name () |
| return reference to opacity_texture_name value | |
| virtual void | set_specular_texture_name (std::string o) |
| set specular_texture_name value | |
| const std::string & | get_specular_texture_name () const |
| return specular_texture_name value | |
| std::string & | ref_specular_texture_name () |
| return reference to specular_texture_name value | |
| virtual void | set_emission_texture_name (std::string o) |
| set emission_texture_name value | |
| const std::string & | get_emission_texture_name () const |
| return emission_texture_name value | |
| std::string & | ref_emission_texture_name () |
| return reference to emission_texture_name value | |
| virtual void | set_bump_texture_name (std::string b) |
| set bump_texture_name value | |
| const std::string & | get_bump_texture_name () const |
| return bump_texture_name value | |
| std::string & | ref_bump_texture_name () |
| return reference to bump_texture_name value | |
| void | set_bump_scale (float bs) |
| set scale of bumps | |
| float | get_bump_scale () const |
| return bump scale | |
| float & | ref_bump_scale () |
| return reference to bump scale | |
Protected Attributes | |
| std::string | name |
| > name of material | |
| float | opacity |
| > 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 |
| > scaling factor for bump map | |
| std::string | bump_texture_name |
| > file name of bump map texture | |
| color_type | ambient |
| >ambient color component | |
| color_type | diffuse |
| >diffuse color component | |
| color_type | specular |
| >specular color component | |
| color_type | emission |
| >emissive color component | |
| float | shininess |
| >exponent of the specular cosine term | |
>extension of a phong material with support for texture mapped color channels