Unravel Engine C++ Reference
Loading...
Searching...
No Matches
light.cpp
Go to the documentation of this file.
1#include "light.h"
2
3namespace unravel
4{
6{
7 if(r < 0)
8 r = 0;
9
10 range = r;
11}
12
14{
15 if(angle < inner_angle)
16 angle = inner_angle;
17
18 outer_angle = angle;
19}
20
22{
23 if(angle > outer_angle)
24 angle = outer_angle;
25
26 inner_angle = angle;
27}
28} // namespace unravel
void set_inner_angle(float angle)
Sets the inner angle of the spot light.
Definition light.cpp:21
void set_outer_angle(float angle)
Sets the outer angle of the spot light.
Definition light.cpp:13
void set_range(float r)
Sets the range of the spot light.
Definition light.cpp:5