cgv
Loading...
Searching...
No Matches
light_source.cxx
1#include "light_source.h"
2
3namespace cgv {
4 namespace media {
5 namespace illum {
6
14
15 }
16 }
17}
float spot_exponent
>spot exponent
vec3 spot_direction
>direction of spot light
float quadratic_attenuation
>quadratic attenuation coefficients used for positional light sources only
light_source(LightType _t=LT_DIRECTIONAL)
init with default values
float constant_attenuation
>constant attenuation coefficients used for positional light sources only
float ambient_scale
> scale to use on emission to retrieve ambient illumination caused by light source
float linear_attenuation
>linear attenuation coefficients used for positional light sources only
LightType type
>type of light source
rgb emission
> radiance for directional light sources and intensity for point light sources
vec3 position
> direction to light source for directional light sources and location of light source for point or s...
bool local_to_eye_coordinates
>whether location is relative to eye coordinate system, i.e. model view is identity
float spot_cutoff
>spot cutoff in degrees
this header is dependency free
Definition print.h:11