things are even *less* broken if we undo the perspecive divide proper

This commit is contained in:
espes 2013-11-23 11:31:58 +11:00
parent fa46a9eaa5
commit 06f324848d
1 changed files with 3 additions and 1 deletions

View File

@ -682,7 +682,9 @@ QString* vsh_translate(uint16_t version,
"RCP R1.z, R1.z;\n"
"MUL R12.xyz, R12, R1;\n"
"MOV R12.w, 1;\n"
/* undo the perspective divide */
"MUL R12.xyz, R12, R12.w;\n"
/* Z coord [0;1]->[-1;1] mapping, see comment in transform_projection
* in state.c