Euphoria
light.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "base/vec3.h"
4 #include "base/rgb.h"
5 #include "base/angle.h"
6 
7 namespace eu::render
8 {
10  {
11  float constant = 1.0f;
12  float linear = 0.09f;
13  float quadratic = 0.032f;
14  };
15 
16 
17  struct Light
18  {
19  enum class Type
20  {
22  point,
23  spot
24  };
25 
26  // todo(Gustav): move this to a light def file and let it be specified in a editor
27 
36 
38 
39  Light();
40  };
41 
42 }
Definition: rgb.h:62
LightAttenuation attenuation
Definition: light.h:37
Angle cutoff_angle_outer
Definition: light.h:34
vec3f position
Definition: light.h:29
Type light_type
Definition: light.h:28
unit3f direction
Definition: light.h:30
Angle cutoff_angle_inner
Definition: light.h:35
Definition: vec3.h:48