mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Merge pull request #11394 from hyperlogic/bug-fix/oculus-ipd-lighting
Oculus: fix for lighting changes as avatar scale changes
This commit is contained in:
commit
5e5b77fbaa
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ glm::mat4 OculusBaseDisplayPlugin::getCullingProjection(const glm::mat4& basePro
|
||||||
float baseFarClip = baseFrustum.getFarClip();
|
float baseFarClip = baseFrustum.getFarClip();
|
||||||
auto combinedFov = _eyeFovs[0];
|
auto combinedFov = _eyeFovs[0];
|
||||||
combinedFov.LeftTan = combinedFov.RightTan = std::max(combinedFov.LeftTan, combinedFov.RightTan);
|
combinedFov.LeftTan = combinedFov.RightTan = std::max(combinedFov.LeftTan, combinedFov.RightTan);
|
||||||
return toGlm(ovrMatrix4f_Projection(combinedFov, DEFAULT_NEAR_CLIP, DEFAULT_FAR_CLIP, ovrProjection_ClipRangeOpenGL));
|
return toGlm(ovrMatrix4f_Projection(combinedFov, baseNearClip, baseFarClip, ovrProjection_ClipRangeOpenGL));
|
||||||
} else {
|
} else {
|
||||||
return baseProjection;
|
return baseProjection;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue