diff options
Diffstat (limited to 'res/text.f.glsl')
-rw-r--r-- | res/text.f.glsl | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/res/text.f.glsl b/res/text.f.glsl index d3265712..d2defb39 100644 --- a/res/text.f.glsl +++ b/res/text.f.glsl @@ -1,17 +1,14 @@ #version 330 core in vec2 TexCoords; -flat in int InstanceId; +in vec3 fg; layout(location = 0, index = 0) out vec4 color; layout(location = 0, index = 1) out vec4 alphaMask; uniform sampler2D mask; -uniform ivec3 textColor[32]; void main() { - int i = InstanceId; alphaMask = vec4(texture(mask, TexCoords).rgb, 1.0); - vec3 textColorF = vec3(textColor[i]) / vec3(255.0, 255.0, 255.0); - color = vec4(textColorF, 1.0); + color = vec4(fg, 1.0); } |