X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=demos%2Fdesertpillars%2Fsource%2Fdesertpillars.h;h=0a3f2f2e336481598920722b76305d156dd5a80d;hb=133ffb2c26dff240dbbda47c09b216951e07f5f5;hp=417073816b0fd50fe433de311fb571817e4de295;hpb=be3b67fdd0d0420ffc1e97a6535159c63a97fdc8;p=libs%2Fgl.git diff --git a/demos/desertpillars/source/desertpillars.h b/demos/desertpillars/source/desertpillars.h index 41707381..0a3f2f2e 100644 --- a/demos/desertpillars/source/desertpillars.h +++ b/demos/desertpillars/source/desertpillars.h @@ -54,6 +54,17 @@ private: virtual void setup_render(Msp::GL::Renderer &, Msp::GL::Tag) const; }; + class LightFlare: public Msp::GL::ObjectInstance + { + private: + Msp::GL::ProgramData shdata; + + public: + LightFlare(const Msp::GL::Object &, unsigned); + + virtual void setup_render(Msp::GL::Renderer &, Msp::GL::Tag) const; + }; + Msp::Graphics::Display display; Options opts; Msp::Graphics::Window window; @@ -64,13 +75,10 @@ private: Msp::GL::WindowView view; std::unique_ptr sequence; Msp::GL::Camera camera; + const Msp::GL::Lighting &lighting; - std::unique_ptr sky; - std::unique_ptr shadow_seq; - std::unique_ptr shadow_map; std::unique_ptr env_seq; std::unique_ptr env_map; - std::unique_ptr global_env; Msp::GL::OrderedScene content; MorphSphere sphere; @@ -83,6 +91,11 @@ private: Msp::GL::Vector3 sun_axis; Msp::Geometry::Angle sun_angle; + Msp::GL::PointLight &wisp; + Msp::GL::Color wisp_base_color; + Msp::Geometry::Angle wisp_angle; + LightFlare flare; + float camera_distance; Msp::Geometry::Angle camera_base_height; Msp::Geometry::Angle camera_angle;