cgv
Loading...
Searching...
No Matches
phong_material.h
1
#pragma once
2
3
#include <cgv/media/color.h>
4
#include "lib_begin.h"
5
6
namespace
cgv
{
7
namespace
media {
8
namespace
illum {
9
11
struct
CGV_API
phong_material
12
{
13
using
color_type
=
cgv::rgba
;
14
16
color_type
ambient = { 0.1f, 0.1f, 0.1f, 1.0f };
18
color_type
diffuse = { 0.5f, 0.5f, 0.5f, 1.0f };
20
color_type
specular = { 0.5f, 0.5f, 0.5f, 1.0f };
22
color_type
emission = { 0.0f, 0.0f, 0.0f, 1.0f };
24
float
shininess = 50.0f;
25
27
static
const
phong_material
& get_default();
28
};
29
30
}
31
}
32
}
33
34
#include <cgv/config/lib_end.h>
cgv::media::color< float, cgv::media::RGB, cgv::media::OPACITY >
cgv
the cgv namespace
Definition
print.h:11
cgv::rgba
cgv::media::color< float, cgv::media::RGB, cgv::media::OPACITY > rgba
declare rgba color type with 32 bit components
Definition
color.h:893
cgv::media::illum::phong_material
Stores properties of a phong brdf material.
Definition
phong_material.h:12
cgv
media
illum
phong_material.h
Generated by
1.9.8