diff options
Diffstat (limited to 'res/text.f.glsl')
-rw-r--r-- | res/text.f.glsl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/res/text.f.glsl b/res/text.f.glsl index 532cf929..70ad3d19 100644 --- a/res/text.f.glsl +++ b/res/text.f.glsl @@ -13,19 +13,18 @@ // limitations under the License. #version 330 core in vec2 TexCoords; -in vec3 fg; -in vec4 bg; -flat in int background; +flat in vec3 fg; +flat in vec4 bg; +uniform int backgroundPass; layout(location = 0, index = 0) out vec4 color; layout(location = 0, index = 1) out vec4 alphaMask; -uniform float bgOpacity; uniform sampler2D mask; void main() { - if (background != 0) { + if (backgroundPass != 0) { if (bg.a == 0.0) discard; |