Builtin names staring with gl_ will not be available in core profile. Same with the ftransform function. New matrix API provides the same names minus the gl_ prefix. Part of T49450
		
			
				
	
	
		
			14 lines
		
	
	
		
			247 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			247 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
 | 
						|
uniform mat4 ModelViewProjectionMatrix;
 | 
						|
 | 
						|
in vec3 pos;
 | 
						|
in float edgeWidthModulator;
 | 
						|
 | 
						|
out vec4 pos_xformed;
 | 
						|
out float widthModulator;
 | 
						|
 | 
						|
void main() {
 | 
						|
	pos_xformed = ModelViewProjectionMatrix * vec4(pos, 1.0);
 | 
						|
	widthModulator = edgeWidthModulator;
 | 
						|
}
 |