Fix sign of depth in "Through" projection matrix. Thanks xele02. Fixes ToE, Dissidia, etc.

This commit is contained in:
Henrik Rydgard 2013-02-20 00:12:31 +01:00
parent 67272ec271
commit eb130db387

View file

@ -243,7 +243,7 @@ void LinkedShader::updateUniforms() {
if (u_proj_through != -1 && (dirtyUniforms & DIRTY_PROJTHROUGHMATRIX))
{
Matrix4x4 proj_through;
proj_through.setOrtho(0.0f, 480, 272, 0, -1, 0); // TODO: Store this somewhere instead of regenerating! And not in each LinkedShader object!
proj_through.setOrtho(0.0f, 480, 272, 0, 1, 0);
glUniformMatrix4fv(u_proj_through, 1, GL_FALSE, proj_through.getReadPtr());
}
if (u_texenv != -1 && (dirtyUniforms & DIRTY_TEXENV)) {