cgv
Loading...
Searching...
No Matches
obj_material.h
1#pragma once
2
3#include <cgv/media/illum/phong_material.h>
4#include "lib_begin.h"
5
6namespace cgv {
7 namespace media {
8 namespace illum {
9
11struct CGV_API obj_material : public phong_material
12{
15 TT_AMBIENT_TEXTURE = 1,
16 TT_DIFFUSE_TEXTURE = 2,
17 TT_OPACITY_TEXTURE = 4,
18 TT_SPECULAR_TEXTURE = 8,
19 TT_EMISSION_TEXTURE = 16,
20 TT_BUMP_TEXTURE = 32,
21 TT_ALL_TEXTURES = 63
22 };
23
25 std::string name = "default";
27 float opacity = 1.0f;
39 float bump_scale = 1.0f;
41 std::string bump_texture_name;
42};
43
44 }
45 }
46}
47
48#include <cgv/config/lib_end.h>
the cgv namespace
Definition print.h:11
Extension of a phong material with support for texture-mapped color channels.
std::string emission_texture_name
file name of emission texture
std::string bump_texture_name
file name of bump map texture
std::string diffuse_texture_name
file name of diffuse texture
std::string specular_texture_name
file name of specular texture
std::string ambient_texture_name
file name of ambient texture
TextureType
different types of textures
std::string opacity_texture_name
file name of opacity texture
Stores properties of a phong brdf material.