Euphoria
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
libs
render
src
render
light.cc
Go to the documentation of this file.
1
#include "
render/light.h
"
2
3
namespace
eu::render
4
{
5
Light::Light
()
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
}
light.h
eu::render
Definition:
button.h:15
eu::NamedColor
NamedColor
Definition:
colors.h:12
eu::NamedColor::white
@ white
eu::zero3f
constexpr vec3f zero3f
Definition:
vec3.h:95
eu::Angle
Definition:
angle.h:14
eu::render::Light::Light
Light()
Definition:
light.cc:5
eu::render::Light::Type
Type
Definition:
light.h:20
eu::vec3f
Definition:
vec3.h:48