mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-03 16:39:01 -06:00 
			
		
		
		
	gl_shader_gen: Set position.w to 1.
This commit is contained in:
		@@ -39,6 +39,10 @@ void main() {
 | 
				
			|||||||
    // Viewport can be flipped, which is unsupported by glViewport
 | 
					    // Viewport can be flipped, which is unsupported by glViewport
 | 
				
			||||||
    position.xy *= viewport_flip.xy;
 | 
					    position.xy *= viewport_flip.xy;
 | 
				
			||||||
    gl_Position = position;
 | 
					    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;
 | 
					    out += program.first;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user