mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-18 02:02:05 +00:00
Grab tanHalfFovy from the projection matrix
This commit is contained in:
parent
f6bede8374
commit
8861b1aaff
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ void FGLRenderer::AmbientOccludeScene()
|
||||||
bool multisample = gl_multisample > 1;
|
bool multisample = gl_multisample > 1;
|
||||||
|
|
||||||
//float tanHalfFovy = tan(fovy * (M_PI / 360.0f));
|
//float tanHalfFovy = tan(fovy * (M_PI / 360.0f));
|
||||||
float tanHalfFovy = 1.0f / 1.33333302f; // 1.0f / gl_RenderState.mProjectionMatrix.get()[5];
|
float tanHalfFovy = 1.0f / gl_RenderState.mProjectionMatrix.get()[5];
|
||||||
float invFocalLenX = tanHalfFovy * (mBuffers->GetSceneWidth() / (float)mBuffers->GetSceneHeight());
|
float invFocalLenX = tanHalfFovy * (mBuffers->GetSceneWidth() / (float)mBuffers->GetSceneHeight());
|
||||||
float invFocalLenY = tanHalfFovy;
|
float invFocalLenY = tanHalfFovy;
|
||||||
float nDotVBias = clamp(bias, 0.0f, 1.0f);
|
float nDotVBias = clamp(bias, 0.0f, 1.0f);
|
||||||
|
|
Loading…
Reference in a new issue