cgv
Loading...
Searching...
No Matches
light_source.cxx
1
#include "light_source.h"
2
3
namespace
cgv
{
4
namespace
media {
5
namespace
illum {
6
7
light_source::light_source
(LightType _t)
8
:
type
(_t),
local_to_eye_coordinates
(true),
9
position
(0,1,0),
emission
(1,1,1),
ambient_scale
(0.1f),
10
constant_attenuation
(1.0f),
linear_attenuation
(0.0f),
quadratic_attenuation
(0.2f),
11
spot_direction
(0,-1,0),
spot_exponent
(10),
spot_cutoff
(45)
12
{
13
}
14
15
}
16
}
17
}
cgv::media::illum::light_source::spot_exponent
float spot_exponent
>spot exponent
Definition
light_source.h:38
cgv::media::illum::light_source::spot_direction
vec3 spot_direction
>direction of spot light
Definition
light_source.h:36
cgv::media::illum::light_source::quadratic_attenuation
float quadratic_attenuation
>quadratic attenuation coefficients used for positional light sources only
Definition
light_source.h:34
cgv::media::illum::light_source::light_source
light_source(LightType _t=LT_DIRECTIONAL)
init with default values
Definition
light_source.cxx:7
cgv::media::illum::light_source::constant_attenuation
float constant_attenuation
>constant attenuation coefficients used for positional light sources only
Definition
light_source.h:30
cgv::media::illum::light_source::ambient_scale
float ambient_scale
> scale to use on emission to retrieve ambient illumination caused by light source
Definition
light_source.h:28
cgv::media::illum::light_source::linear_attenuation
float linear_attenuation
>linear attenuation coefficients used for positional light sources only
Definition
light_source.h:32
cgv::media::illum::light_source::type
LightType type
>type of light source
Definition
light_source.h:20
cgv::media::illum::light_source::emission
rgb emission
> radiance for directional light sources and intensity for point light sources
Definition
light_source.h:26
cgv::media::illum::light_source::position
vec3 position
> direction to light source for directional light sources and location of light source for point or s...
Definition
light_source.h:24
cgv::media::illum::light_source::local_to_eye_coordinates
bool local_to_eye_coordinates
>whether location is relative to eye coordinate system, i.e. model view is identity
Definition
light_source.h:22
cgv::media::illum::light_source::spot_cutoff
float spot_cutoff
>spot cutoff in degrees
Definition
light_source.h:40
cgv
this header is dependency free
Definition
print.h:11
cgv
media
illum
light_source.cxx
Generated by
1.15.0