 b22c069f7a
			
		
	
	
		b22c069f7a
		
	
	
	
	
		
			
			Adds command line options:
   --invert-y
   --iy
(synonyms) which invert position.Y on vertex shader output.  Handles these cases:
* Direct single variable return
* Member of direct returned struct
* Single variable output parameter
* Member of struct output parameter
API:
    // Enables position.Y output negation in vertex shader
    void TShader::setInvertY(bool invert);
Fixes #1173
		
	
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			254 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			254 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
| // Test Y negation from entry point out parameter
 | |
| 
 | |
| float4 position;
 | |
| 
 | |
| struct VS_OUT {
 | |
|     float4 pos : SV_Position;
 | |
|     int somethingelse;
 | |
| };
 | |
| 
 | |
| VS_OUT main()
 | |
| {
 | |
|     VS_OUT vsout;
 | |
| 
 | |
|     vsout.pos = position;
 | |
|     vsout.somethingelse = 42;
 | |
| 
 | |
|     return vsout;
 | |
| }
 |