Rebase artifacts + cleaned up the remaining unnecessary exposures of stereo awareness.

This commit is contained in:
madsbuvi 2022-04-29 17:35:24 +02:00
parent 606a795a54
commit 79577f37de
12 changed files with 44 additions and 52 deletions

View file

@ -406,6 +406,11 @@ namespace Stereo
return mViewMatrix[view];
}
osg::Matrixd Manager::computeEyeViewOffset(int view) const
{
return mViewOffsetMatrix[view];
}
Eye Manager::getEye(const osgUtil::CullVisitor* cv) const
{
if (cv->getIdentifier() == mIdentifierMain)

View file

@ -70,6 +70,7 @@ namespace Stereo
osg::Matrixd computeEyeProjection(int view, bool reverseZ) const;
osg::Matrixd computeEyeView(int view) const;
osg::Matrixd computeEyeViewOffset(int view) const;
//! Sets up any definitions necessary for stereo rendering
void shaderStereoDefines(Shader::ShaderManager::DefineMap& defines) const;