Renderer/assets/Shaders/ui/font/bitmapchar/bitmapchar.fs
austin d84a993739
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
font loading update
2024-11-20 18:14:26 -05:00

19 lines
445 B
GLSL

#version 330 core
out vec4 FragColor;
in vec2 TexCoords;
uniform sampler2D screenTexture;
uniform vec3 color;
void main(){
vec3 textColorModifier = color;
if(color.x == 0 && color.y == 0 && color.z == 0){
textColorModifier.x = 1;
textColorModifier.y = 1;
textColorModifier.z = 1;
}
vec4 sample = texture(screenTexture, TexCoords);
FragColor = vec4(sample.r) * vec4(textColorModifier.xyz, 1.0);
}