17 INLINE DirectionalLight::CData::
19 _specular_color(1.0f, 1.0f, 1.0f, 1.0f),
20 _point(0.0f, 0.0f, 0.0f),
21 _direction(LVector3::forward())
28 INLINE DirectionalLight::CData::
29 CData(
const DirectionalLight::CData ©) :
30 _specular_color(copy._specular_color),
32 _direction(copy._direction)
42 if (_has_specular_color) {
43 CDReader cdata(_cycler);
44 return cdata->_specular_color;
55 CDWriter cdata(_cycler);
56 _has_specular_color =
true;
57 cdata->_specular_color = color;
66 _has_specular_color =
false;
77 INLINE
const LPoint3 &DirectionalLight::
79 CDReader cdata(_cycler);
88 CDWriter cdata(_cycler);
89 cdata->_point = point;
97 INLINE
const LVector3 &DirectionalLight::
98 get_direction()
const {
99 CDReader cdata(_cycler);
100 return cdata->_direction;
108 CDWriter cdata(_cycler);
109 cdata->_direction = direction;
set_specular_color
Sets the color of specular highlights generated by the light.
void clear_specular_color()
Clears a custom specular color setting, meaning that the specular color will now come from the color.
set_point
Sets the point in space at which the light is located.
get_color
Returns the basic color of the light.
set_direction
Sets the direction in which the light is aimed.
const LColor & get_specular_color() const final
Returns the color of specular highlights generated by the light.