4# include <OgreTexture.h>
5# include <OgreVector.h>
33 Ogre::TexturePtr weather, shape, skyCube;
34 Ogre::Matrix4 skyToCube = Ogre::Matrix4::IDENTITY;
35 Ogre::Vector4 params, scale, drift, volume;
36 Ogre::Vector3 sunDirection, sun, sky, airExtinction;
37 float hazeLight = 1.0f;
42 CloudImage(
const CloudImage&) =
delete;
43 CloudImage& operator=(
const CloudImage&) =
delete;
50 void Render(Ogre::Viewport* viewport,
const Clouds& clouds,
float seaZ,
bool withHaze);
55 void RenderCube(
const Ogre::TexturePtr& cube,
const Clouds& clouds,
const Ogre::Vector3& eye,
const Ogre::Matrix3& cubeToWorld);
58 Ogre::TexturePtr
Texture()
const {
return m_targets[m_current]; }
61 bool Flipped()
const {
return m_flipped; }
64 void Create(
int width,
int height);
67 Ogre::SceneManager* m_sceneMgr =
nullptr;
68 Ogre::Camera* m_camera =
nullptr;
69 Ogre::Rectangle2D* m_rect =
nullptr;
70 Ogre::Rectangle2D* m_cubeRect =
nullptr;
71 Ogre::Texture* m_cubeWithViewports =
nullptr;
72 std::array<Ogre::TexturePtr, 2> m_targets;
74 int m_width = 0, m_height = 0;
75 bool m_flipped =
true;
76 bool m_historyValid =
false;
78 Ogre::Vector3 m_prevEye {0.0f, 0.0f, 0.0f}, m_prevForward {1.0f, 0.0f, 0.0f}, m_prevRight {0.0f, 1.0f, 0.0f}, m_prevUp {0.0f, 0.0f, -1.0f};
79 Ogre::Vector2 m_prevTan {1.0f, 1.0f};
80 Ogre::Vector4 m_prevDrift {0.0f, 0.0f, 0.0f, 0.0f};
Visualization utilities.
Definition VisualDomain.h:12
@ Texture
The image set of Visual.Sky (also the only choice of the classic look).