]> 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 c6242ad313d9eac4b257b1ec1d7fd37e9e4ed420..417073816b0fd50fe433de311fb571817e4de295 100644 (file)
@@ -78,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;