diff options
Diffstat (limited to 'res/text.f.glsl')
-rw-r--r-- | res/text.f.glsl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/res/text.f.glsl b/res/text.f.glsl index 3389fd7e..e817626f 100644 --- a/res/text.f.glsl +++ b/res/text.f.glsl @@ -5,10 +5,11 @@ layout(location = 0, index = 0) out vec4 color; layout(location = 0, index = 1) out vec4 alphaMask; uniform sampler2D mask; -uniform vec3 textColor; +uniform ivec3 textColor; void main() { - alphaMask = vec4(texture(mask, TexCoords).rgb, 1.); - color = vec4(textColor, 1.); + alphaMask = vec4(texture(mask, TexCoords).rgb, 1.0); + vec3 textColorF = vec3(textColor) / vec3(255.0, 255.0, 255.0); + color = vec4(textColorF, 1.0); } |