FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
SkyLighting.h
1#pragma once
2#ifdef FH_VISUALIZATION
3
4# include <OgreMatrix3.h>
5# include <OgreQuaternion.h>
6# include <OgreVector.h>
7# include <string>
8
9namespace visual
10{
11
16Ogre::Quaternion SkyBoxOrientation();
17
25Ogre::Matrix3 WorldToSkyCube();
26
29Ogre::Vector3 CubeTexelDirection(int face, float s, float t);
30
32struct SkyLighting
33{
34 bool valid = false;
35 Ogre::Vector3 sunDirection {0.0f, 0.0f, -1.0f};
36 Ogre::Vector3 sunColour {1.0f, 1.0f, 1.0f};
37 float meanSkyRadiance = 0.5f;
38 Ogre::Vector3 skyIrradiance {1.5f, 1.5f, 1.5f};
39 float peakRatio = 1.0f;
40 float concentration = 0.0f;
41};
42
51float SunVisibility(const SkyLighting& sky);
52
62SkyLighting DetectSkyLighting(const std::string& textureName, const Ogre::Matrix3& worldToCube);
63
64} // namespace visual
65#endif
Visualization utilities.
Definition VisualDomain.h:12