This leads to less lookups to the GWNShaderInterface and less uniform upload. We still keep a legacy path so that Builtin uniforms can still work. We might restrict this path to Builtin shader only in the future.
		
			
				
	
	
		
			15 lines
		
	
	
		
			336 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			336 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
/* keep in sync with DRWManager.view_data */
 | 
						|
layout(std140) uniform viewBlock {
 | 
						|
	/* Same order as DRWViewportMatrixType */
 | 
						|
	mat4 ViewProjectionMatrix;
 | 
						|
	mat4 ViewProjectionMatrixInverse;
 | 
						|
	mat4 ViewMatrix;
 | 
						|
	mat4 ViewMatrixInverse;
 | 
						|
	mat4 ProjectionMatrix;
 | 
						|
	mat4 ProjectionMatrixInverse;
 | 
						|
 | 
						|
	vec4 CameraTexCoFactors;
 | 
						|
 | 
						|
	vec4 clipPlanes[2];
 | 
						|
};
 |