Skip to content
Snippets Groups Projects
Unverified Commit 46cbb6b0 authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #566 from bunnei/set_pos_w

gl_shader_gen: Set position.w to 1.
parents 17f3590d 55c49d5b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment