BGE: Fix silly typo that invalidates negative scaling camera feature.
Negative scale on camera is a nice trick to invert render image on one axis at no extra CPU cost. It was implemented in the Decklink branch but I introduced a typo when porting it to master. It is now fixed.
This commit is contained in:
parent
4846184095
commit
89b1805df6
|
@ -994,8 +994,8 @@ void RAS_OpenGLRasterizer::SetViewMatrix(const MT_Matrix4x4 &mat,
|
|||
}
|
||||
|
||||
bool negX = (scale[0] < 0.0f);
|
||||
bool negY = (scale[0] < 0.0f);
|
||||
bool negZ = (scale[0] < 0.0f);
|
||||
bool negY = (scale[1] < 0.0f);
|
||||
bool negZ = (scale[2] < 0.0f);
|
||||
if (negX || negY || negZ) {
|
||||
m_viewmatrix.tscale((negX)?-1.0f:1.0f, (negY)?-1.0f:1.0f, (negZ)?-1.0f:1.0f, 1.0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue