X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterials%2Flight.h;h=189380cdb7a1e2f1b619423761b708bfadc8b2dc;hp=b20ebae44d3fe714f0a7bc4365f160bf3ae9b7e9;hb=190a7e11237351f6b730c28f7b16f183e8adc69c;hpb=be6ffe96ecb4707599fe1a6f620c348760213d46 diff --git a/source/materials/light.h b/source/materials/light.h index b20ebae4..189380cd 100644 --- a/source/materials/light.h +++ b/source/materials/light.h @@ -19,7 +19,7 @@ implement different types of lights. 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 { @@ -55,15 +55,15 @@ protected: 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: