Some checks failed
		
		
	
	studiorailgun/Renderer/pipeline/head There was a failure building this commit
				
			
		
			
				
	
	
		
			20 lines
		
	
	
		
			478 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			478 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
 | 
						|
#version 330 core
 | 
						|
out vec4 FragColor;
 | 
						|
  
 | 
						|
in vec2 TexCoords;
 | 
						|
 | 
						|
uniform sampler2D screenTexture;
 | 
						|
uniform vec4 color;
 | 
						|
 | 
						|
void main(){
 | 
						|
    vec4 textColorModifier = color;
 | 
						|
    if(color.x == 0 && color.y == 0 && color.z == 0){
 | 
						|
        textColorModifier.x = 1;
 | 
						|
        textColorModifier.y = 1;
 | 
						|
        textColorModifier.z = 1;
 | 
						|
    }
 | 
						|
    float baseColor = texture(screenTexture, TexCoords).r;
 | 
						|
    textColorModifier.a = textColorModifier.a * baseColor;
 | 
						|
    FragColor = textColorModifier;
 | 
						|
} |