Lights are usually grouped with a Lighting object, which can be used in a
Sequence::Step.
-Lights do not cast shadows by themselves. See ShadowMap for that.
+Shadows can be added to lights by using the ShadowMap effect.
*/
class Light: public Placeable
{
public:
virtual ~Light() = default;
- /** Sets the color of the Light. */
+ /** Sets the color of the light. */
void set_color(const Color &);
const Color &get_color() const { return color; }
unsigned get_generation() const { return generation; }
- /** Updates a ProgramData object with the uniforms for the Light. A light
- source index must be passed in. Primarily used by Lighting. */
+ /** Updates a ProgramData object with the uniform values for the light. A
+ light source index must be passed in. */
void update_shader_data(ProgramData &, unsigned) const;
protected: