summaryrefslogtreecommitdiff
path: root/data/graphics/shaders/simple_frag.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'data/graphics/shaders/simple_frag.glsl')
-rw-r--r--data/graphics/shaders/simple_frag.glsl7
1 files changed, 5 insertions, 2 deletions
diff --git a/data/graphics/shaders/simple_frag.glsl b/data/graphics/shaders/simple_frag.glsl
index 45c1ddd73..7a68c364c 100644
--- a/data/graphics/shaders/simple_frag.glsl
+++ b/data/graphics/shaders/simple_frag.glsl
@@ -8,9 +8,12 @@ uniform float alpha;
void main()
{
- outColor = texture(tex, Texcoord);
if (drawType >= 0.1)
- outColor = texture(tex, Texcoord) * vec4(1.0, 1.0, 1.0, alpha);
+ {
+ outColor = texelFetch(tex, ivec2(Texcoord.x, Texcoord.y), 0) * vec4(1.0, 1.0, 1.0, alpha);
+ }
else
+ {
outColor = color;
+ }
}