yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

Merge pull request #566 from bunnei/set_pos_w

gl_shader_gen: Set position.w to 1.
This commit is contained in:
bunnei 2018-06-15 22:03:48 -04:00 committed by GitHub
commit 46cbb6b090
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,10 @@ void main() {
// Viewport can be flipped, which is unsupported by glViewport
position.xy *= viewport_flip.xy;
gl_Position = position;
// TODO(bunnei): This is likely a hack, position.w should be interpolated as 1.0
// For now, this is here to bring order in lieu of proper emulation
position.w = 1.0;
}
)";
out += program.first;