#include <HdrUtils.h>
|
static void | init (Ogre::uint8 fsaa) |
|
static void | setSkyColour (const Ogre::ColourValue &colour, float multiplier, Ogre::CompositorWorkspace *workspace) |
|
static void | setExposure (float exposure, float minAutoExposure, float maxAutoExposure) |
| Modifies the HDR Materials for the new exposure parameters By default the HDR implementation will try to auto adjust the exposure based on the scene's average luminance. More...
|
|
static void | setBloomThreshold (float minThreshold, float fullColourThreshold) |
| Controls the bloom intensity. More...
|
|
◆ init()
void Demo::HdrUtils::init |
( |
Ogre::uint8 |
fsaa | ) |
|
|
static |
◆ setBloomThreshold()
void Demo::HdrUtils::setBloomThreshold |
( |
float |
minThreshold, |
|
|
float |
fullColourThreshold |
|
) |
| |
|
static |
Controls the bloom intensity.
- Parameters
-
minThreshold | Colours darker than minThreshold will not contribute to bloom. Higher thresholds reduce the amount of bloom. Scale is in lumens / 1024. |
fullColourThreshold | The bloom fades between minThreshold & fullColourThreshold. Must be > minThreshold. If it is too close to it, bloom fading may be too harsh/sudden. Scale is the same as minThreshold. |
◆ setExposure()
void Demo::HdrUtils::setExposure |
( |
float |
exposure, |
|
|
float |
minAutoExposure, |
|
|
float |
maxAutoExposure |
|
) |
| |
|
static |
Modifies the HDR Materials for the new exposure parameters By default the HDR implementation will try to auto adjust the exposure based on the scene's average luminance.
- If left unbounded, even the darkest scenes can look well lit and the brigthest scenes appear too normal.
- These parameters are useful to prevent the auto exposure from jumping too much from one extreme to the other and provide a consistent experience within the same lighting conditions. (e.g. you may want to change the params when going from indoors to outdoors)
- The smaller the gap between minAutoExposure & maxAutoExposure, the less the auto exposure tries to auto adjust to the scene's lighting conditions.
- Parameters
-
exposure | Exposure in EV. Valid range is [-inf; inf] Low values will make the picture darker. Higher values will make the picture brighter. |
minAutoExposure | It's in EV stops. Valid range is [-inf; inf] Must be minAutoExposure <= maxAutoExposure Controls how much auto exposure darkens a bright scene. |
To prevent that looking at a very bright object makes the rest of the scene really dark, use higher values.
- Parameters
-
maxAutoExposure | It's in EV stops. Valid range is [-inf; inf] Must be minAutoExposure <= maxAutoExposure Controls how much auto exposure brightens a dark scene. |
To prevent that looking at a very dark object makes the rest of the scene really bright, use lower values.
◆ setSkyColour()
void Demo::HdrUtils::setSkyColour |
( |
const Ogre::ColourValue & |
colour, |
|
|
float |
multiplier, |
|
|
Ogre::CompositorWorkspace * |
workspace |
|
) |
| |
|
static |
The documentation for this class was generated from the following files: