Euphoria
light.cc
Go to the documentation of this file.
1 #include "render/light.h"
2 
3 namespace eu::render
4 {
6  : light_type(Type::directional)
7  , position(zero3f)
8  , direction(vec3f {-0.2f, -1.0f, -0.3f}.get_normalized())
9  , ambient(0.3f)
10  , diffuse(NamedColor::white)
11  , specular(NamedColor::white)
12  , cutoff_angle_outer(Angle::from_degrees(18.0f))
13  , cutoff_angle_inner(Angle::from_degrees(13.37f))
14  {
15  }
16 
17 }
NamedColor
Definition: colors.h:12
constexpr vec3f zero3f
Definition: vec3.h:95
Definition: vec3.h:48