X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fview.h;h=225e3937297a36c33202acee728fe890d58462eb;hb=b3f8467442aac111e9a316db0dda67d37ae240b8;hp=5e954a737da05baf07bd9ff963c0224b26345185;hpb=50856ae150524f11af2bf548f49b7a31e14668aa;p=r2c2.git diff --git a/source/3d/view.h b/source/3d/view.h index 5e954a7..225e393 100644 --- a/source/3d/view.h +++ b/source/3d/view.h @@ -1,8 +1,12 @@ #ifndef R2C2_3D_VIEW_H_ #define R2C2_3D_VIEW_H_ +#include #include +#include #include +#include +#include "sky.h" namespace R2C2 { @@ -16,6 +20,10 @@ protected: unsigned height; Msp::GL::Camera camera; Msp::GL::Pipeline pipeline; + Sky3D sky; + Msp::GL::ShadowMap shadow; + Msp::GL::ColorCurve colorcurve; + Msp::GL::AmbientOcclusion ambient_occlusion; public: View3D(Layout3D &, unsigned, unsigned); @@ -27,9 +35,15 @@ public: Ray create_ray(int, int) const; Ray create_ray(float, float) const; +private: + void compute_bounds(Vector &, Vector &); +public: void view_all(bool = false); void render(); + +private: + void update_shadow_area(); }; } // namespace R2C2