| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/environment/skytechnique.h>

Public Member Functions | |
| SkyTechnique (SkyDome *sky, bool aerialPerspectiveEnabled=false, bool aerialPerspectivePerFragment=true) | |
| the SkyTechnique can be used to easily manage a sky and perform aerial perspective calculations (objects' colors fade to a paler, bluish color in the distance) depending on the sky's parameters. | |
| void | setSky (SkyDome *sky) |
| change/get the sky, which is used for rendering | |
| SkyDome * | getSky () const |
| void | enableAerialPerspective (bool yesNo) |
| enable/disable aerial perspective | |
| bool | isAerialPerspectiveEnabled () const |
| void | setAerialPerspectivePerFragment (bool yesNo) |
| enable/disable aerial perspective per-fragment | |
| bool | getAerialPerspectivePerFragment () const |
| virtual bool | preparePass (VRS::Engine *) |
| virtual void | finishPass (VRS::Engine *) |
| virtual bool | prepareEval (VRS::Engine *, const VRS::Shape *) |
| virtual void | finishEval (VRS::Engine *, const VRS::Shape *) |
| virtual bool | canBeUsed (VRS::Engine *engine) const |
checks for the following extensions
| |
| VRS_TYPEINFO (SkyTechnique, VRS::TechniqueGL) | |
| VRS_SERIALIZABLE (SkyTechnique) | |
It works at the same rendering-pass as BackgrounGL, so results are undefined when there is a background in the scene.
| EnvironmentRenderer::SkyTechnique::SkyTechnique | ( | SkyDome * | sky, | |
| bool | aerialPerspectiveEnabled = false, |
|||
| bool | aerialPerspectivePerFragment = true | |||
| ) |
the SkyTechnique can be used to easily manage a sky and perform aerial perspective calculations (objects' colors fade to a paler, bluish color in the distance) depending on the sky's parameters.
| void EnvironmentRenderer::SkyTechnique::setSky | ( | SkyDome * | sky | ) |
change/get the sky, which is used for rendering
| SkyDome* EnvironmentRenderer::SkyTechnique::getSky | ( | ) | const |
| void EnvironmentRenderer::SkyTechnique::enableAerialPerspective | ( | bool | yesNo | ) |
enable/disable aerial perspective
| bool EnvironmentRenderer::SkyTechnique::isAerialPerspectiveEnabled | ( | ) | const |
| void EnvironmentRenderer::SkyTechnique::setAerialPerspectivePerFragment | ( | bool | yesNo | ) |
enable/disable aerial perspective per-fragment
| bool EnvironmentRenderer::SkyTechnique::getAerialPerspectivePerFragment | ( | ) | const |
| virtual bool EnvironmentRenderer::SkyTechnique::preparePass | ( | VRS::Engine * | ) | [virtual] |
For an active technique, this method is invoked before the traversal of the scene graph in a rendering pass. Settings of the low-level rendering system valid for the whole rendering pass should be made here. "preparePass()" can return false, which indicates that the technique does not need to evaluate the scene graph. However, if at least one of the active techniques returns true, the scene graph is evaluated.
Implements VRS::Technique.
| virtual void EnvironmentRenderer::SkyTechnique::finishPass | ( | VRS::Engine * | ) | [virtual] |
For an active technique, this method is invoked after the traversal of the scene graph. The changes made in "preparePass()" should be undone here
Implements VRS::Technique.
| virtual bool EnvironmentRenderer::SkyTechnique::prepareEval | ( | VRS::Engine * | engine, | |
| const VRS::Shape * | shape | |||
| ) | [virtual] |
For an active Technique, this method is invoked before the evaluation of a shape. Settings of the low-level rendering system only needed for certain shapes (usually indicated by special attributes) should be applied here. "prepareEval()" can forbid the evaluation of a shape by returning false. In this case, even when all other active techniques return true, the shape is not evaluated.
Implements VRS::Technique.
| virtual void EnvironmentRenderer::SkyTechnique::finishEval | ( | VRS::Engine * | engine, | |
| const VRS::Shape * | shape | |||
| ) | [virtual] |
For an active Technique, this method is invoked after the evaluation of a shape (also when shape evaluation was forbidden in "prepareEval()"). Changes made in "prepareEval()" should be undone here.
Implements VRS::Technique.
| virtual bool EnvironmentRenderer::SkyTechnique::canBeUsed | ( | VRS::Engine * | engine | ) | const [virtual] |
checks for the following extensions
Reimplemented from VRS::Technique.
| EnvironmentRenderer::SkyTechnique::VRS_TYPEINFO | ( | SkyTechnique | , | |
| VRS::TechniqueGL | ||||
| ) |
| EnvironmentRenderer::SkyTechnique::VRS_SERIALIZABLE | ( | SkyTechnique | ) |