16 lines
		
	
	
		
			307 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			307 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
| 
 | |
| flat in vec4 color_flat;
 | |
| noperspective in vec2 texCoord_interp;
 | |
| out vec4 fragColor;
 | |
| 
 | |
| uniform sampler2D glyph;
 | |
| 
 | |
| void main()
 | |
| {
 | |
| 	// input color replaces texture color
 | |
| 	fragColor.rgb = color_flat.rgb;
 | |
| 
 | |
| 	// modulate input alpha & texture alpha
 | |
| 	fragColor.a = color_flat.a * texture(glyph, texCoord_interp).r;
 | |
| }
 |