Renderer/assets/Shaders/plane/plane.fs
austin 9aa7cfe048
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
toggle ui element
2024-07-13 23:34:54 -04:00

18 lines
412 B
GLSL

#version 430 core
out vec4 FragColor;
in vec2 TexCoords;
uniform sampler2D screenTexture;
uniform vec3 color;
void main(){
vec4 textureColor = texture(screenTexture, TexCoords);
textureColor.r = textureColor.r * color.r;
textureColor.g = textureColor.g * color.g;
textureColor.b = textureColor.b * color.b;
if(textureColor.a < 0.1){
discard;
}
FragColor = textureColor;
}