]> git.tdb.fi Git - libs/gl.git/blobdiff - source/programbuilder.h
Support hemispherical skylight in ProgramBuilder
[libs/gl.git] / source / programbuilder.h
index cca0c14912165616eecc7f9838e59671a9a2ebb1..0883f6a74fd07a6479dc1b01fa62424882455042 100644 (file)
@@ -18,9 +18,15 @@ public:
        virtual ~invalid_variable_definition() throw() { }
 };
 
+/**
+Generates shaders with common features.
+*/
 class ProgramBuilder
 {
 public:
+       /**
+       Describes the features of a standard shader program.
+       */
        struct StandardFeatures
        {
                class Loader: public DataFile::ObjectLoader<StandardFeatures>
@@ -33,6 +39,7 @@ public:
                bool material;
                bool lighting;
                unsigned max_lights;
+               bool skylight;
                bool specular;
                bool normalmap;
                bool shadow;