summaryrefslogtreecommitdiffstats
path: root/src/opengl/util/pattern_brush.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl/util/pattern_brush.glsl')
-rw-r--r--src/opengl/util/pattern_brush.glsl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/opengl/util/pattern_brush.glsl b/src/opengl/util/pattern_brush.glsl
index e070449..31702b8 100644
--- a/src/opengl/util/pattern_brush.glsl
+++ b/src/opengl/util/pattern_brush.glsl
@@ -17,9 +17,7 @@ vec4 brush()
coords *= inv_brush_texture_size;
- coords.y = -coords.y;
-
- float alpha = texture2D(brush_texture, coords).r;
+ float alpha = 1.0 - texture2D(brush_texture, coords).r;
return gl_Color * alpha;
}