Renderer/assets/Shaders/core/imagepanel/imagepanel.fs
austin d65efefc92
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
Fix image panel regression
2024-11-16 20:32:30 -05: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;
}