21 INLINE Spotlight::CData::
24 _specular_color(1.0f, 1.0f, 1.0f, 1.0f),
25 _attenuation(1.0f, 0.0f, 0.0f)
34 INLINE Spotlight::CData::
35 CData(
const Spotlight::CData ©) :
36 _exponent(copy._exponent),
37 _specular_color(copy._specular_color),
38 _attenuation(copy._attenuation)
52 return cdata->_exponent;
69 cdata->_exponent = exponent;
81 return cdata->_specular_color;
93 cdata->_specular_color = color;
107 return cdata->_attenuation;
121 cdata->_attenuation = attenuation;
void set_attenuation(const LVecBase3 &attenuation)
Sets the terms of the attenuation equation for the light.
This is the base class for all three-component vectors and points.
PN_stdfloat get_exponent() const FINAL
Returns the exponent that controls the amount of light falloff from the center of the spotlight...
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only ...
This template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
const LColor & get_specular_color() const FINAL
Returns the color of specular highlights generated by the light.
This is the base class for all three-component vectors and points.
void set_specular_color(const LColor &color)
Sets the color of specular highlights generated by the light.
const LVecBase3 & get_attenuation() const FINAL
Returns the terms of the attenuation equation for the light.
void set_exponent(PN_stdfloat exponent)
Sets the exponent that controls the amount of light falloff from the center of the spotlight...