]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/lighting.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / materials / lighting.h
index 9dc93b240c7f0042349a0d0732c6a51251b3a92b..335e78872a23f2a0f9acfcf4b05ffddfa0fd2f56 100644 (file)
@@ -12,8 +12,9 @@ namespace GL {
 class Light;
 
 /**
-Encapsulates global lighting parameters and any number of individual light
-sources.
+Combines multiple light sources with global lighting parameters.
+
+This class also stores ProgramData for using the lights in shaders.
 */
 class Lighting
 {
@@ -24,7 +25,6 @@ public:
                static ActionMap shared_actions;
 
        public:
-               Loader(Lighting &);
                Loader(Lighting &, Collection &);
 
        private:
@@ -56,7 +56,8 @@ private:
 public:
        Lighting();
 
-       /** Sets the ambient lighting color.  Affects all surfaces in the scene. */
+       /** Sets the ambient lighting color.  Affects all surfaces in an equal
+       amount. */
        void set_ambient(const Color &);
 
        const Color &get_ambient() const { return ambient; }