diff options
author | M. Stoeckl <manuel.stoeckl93@gmail.com> | 2019-02-04 19:03:25 +0000 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-02-04 19:03:25 +0000 |
commit | 40237b213a847cb3fabaa4da0ef2f295e9bf56a9 (patch) | |
tree | 37172e7a5d0a6de572927a8a0c57e7b34c939f3a /res/text.f.glsl | |
parent | 97e801a73e8070cfdbe317831c7264bdc149f212 (diff) | |
download | alacritty-40237b213a847cb3fabaa4da0ef2f295e9bf56a9.tar.gz alacritty-40237b213a847cb3fabaa4da0ef2f295e9bf56a9.zip |
Simplify text shader
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; |