]> git.tdb.fi Git - libs/gl.git/blobdiff - demos/desertpillars/source/desertpillars.h
Add a day-night cycle to the desertpillars demo
[libs/gl.git] / demos / desertpillars / source / desertpillars.h
index be8235c7a68849fb210a50585a7a8d5b080fa2dc..417073816b0fd50fe433de311fb571817e4de295 100644 (file)
@@ -70,6 +70,7 @@ private:
        std::unique_ptr<Msp::GL::ShadowMap> shadow_map;
        std::unique_ptr<Msp::GL::Sequence> env_seq;
        std::unique_ptr<Msp::GL::EnvironmentMap> env_map;
+       std::unique_ptr<Msp::GL::EnvironmentMap> global_env;
        Msp::GL::OrderedScene content;
 
        MorphSphere sphere;
@@ -77,6 +78,11 @@ private:
        bool sphere_frozen;
        bool sphere_stopped;
 
+       Msp::GL::DirectionalLight &sun;
+       Msp::GL::Vector3 sun_node;
+       Msp::GL::Vector3 sun_axis;
+       Msp::Geometry::Angle<float> sun_angle;
+
        float camera_distance;
        Msp::Geometry::Angle<float> camera_base_height;
        Msp::Geometry::Angle<float> camera_angle;