|
| SunGlareCallback (osg::ref_ptr< osg::OcclusionQueryNode > oqnVisible, osg::ref_ptr< osg::OcclusionQueryNode > oqnTotal, osg::ref_ptr< osg::PositionAttitudeTransform > sunTransform) |
|
virtual void | operator() (osg::Node *node, osg::NodeVisitor *nv) |
|
void | setTimeOfDayFade (float val) |
|
void | setGlareView (float glareView) |
|
| OcclusionCallback (osg::ref_ptr< osg::OcclusionQueryNode > oqnVisible, osg::ref_ptr< osg::OcclusionQueryNode > oqnTotal) |
|
SunGlareCallback controls a full-screen glare effect depending on occlusion query result and the angle between sun and camera. Must be attached as a cull callback to the node above the glare node.
MWRender::Sun::SunGlareCallback::SunGlareCallback |
( |
osg::ref_ptr< osg::OcclusionQueryNode > |
oqnVisible, |
|
|
osg::ref_ptr< osg::OcclusionQueryNode > |
oqnTotal, |
|
|
osg::ref_ptr< osg::PositionAttitudeTransform > |
sunTransform |
|
) |
| |
|
inline |
float MWRender::Sun::SunGlareCallback::getAngleToSunInRadians |
( |
const osg::Matrix & |
viewMatrix | ) |
const |
|
inlineprivate |
virtual void MWRender::Sun::SunGlareCallback::operator() |
( |
osg::Node * |
node, |
|
|
osg::NodeVisitor * |
nv |
|
) |
| |
|
inlinevirtual |
void MWRender::Sun::SunGlareCallback::setGlareView |
( |
float |
glareView | ) |
|
|
inline |
void MWRender::Sun::SunGlareCallback::setTimeOfDayFade |
( |
float |
val | ) |
|
|
inline |
osg::Vec4f MWRender::Sun::SunGlareCallback::mColor |
|
private |
float MWRender::Sun::SunGlareCallback::mGlareView |
|
private |
float MWRender::Sun::SunGlareCallback::mSunGlareFaderAngleMax |
|
private |
float MWRender::Sun::SunGlareCallback::mSunGlareFaderMax |
|
private |
osg::ref_ptr<osg::PositionAttitudeTransform> MWRender::Sun::SunGlareCallback::mSunTransform |
|
private |
float MWRender::Sun::SunGlareCallback::mTimeOfDayFade |
|
private |
The documentation for this class was generated from the following file:
- /home/travis/build/OpenMW/openmw/apps/openmw/mwrender/sky.cpp