19 _color(1.0f, 1.0f, 1.0f, 1.0f),
28 CData(
const Light::CData ©) :
30 _viz_geom(copy._viz_geom),
31 _viz_geom_stale(copy._viz_geom_stale)
41 _has_color_temperature(true),
42 _color_temperature(6500)
50 Light(
const Light ©) :
51 _priority(copy._priority),
52 _has_color_temperature(copy._has_color_temperature),
53 _color_temperature(copy._color_temperature),
61 INLINE
const LColor &Light::
63 CDReader cdata(_cycler);
72 CDWriter cdata(_cycler);
73 cdata->_color = color;
74 _has_color_temperature =
false;
86 return _has_color_temperature;
95 INLINE PN_stdfloat Light::
96 get_color_temperature()
const {
97 nassertr(_has_color_temperature, _color_temperature);
98 return _color_temperature;
113 _priority = priority;
124 get_priority()
const {
143 CDWriter cdata(_cycler);
144 cdata->_viz_geom_stale =
true;
set_color
Sets the basic color of the light.
The abstract interface to all kinds of lights.
set_priority
Changes the relative importance of this light relative to the other lights that are applied simultane...
bool has_color_temperature() const
Returns true if the color was specified as a temperature in kelvins, and get_color_temperature is def...
static UpdateSeq get_sort_seq()
Returns a global sequence number that is incremented any time any Light in the world changes sort or ...
This is a sequence number that increments monotonically.