Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2016-09-17 14:54:30 +0300
committerMike Erwin <significant.bit@gmail.com>2016-09-17 14:54:30 +0300
commite21853abb9fee9936f0a2d257a5b110535f0937e (patch)
tree332bee4889f0bc6b1fd07291614550347a9f4f77 /source/blender/gpu/shaders/gpu_shader_text_frag.glsl
parent1b1275f0db85101345def817fee486beebaa6b9a (diff)
OpenGL: streamline font rendering
Ignore texture matrix in the shader, stop messing with texture matrix in BLF code. Use linear screen-space interpolation instead of perspective. Avoid redundant call to glMatrixMode.
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_text_frag.glsl')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_text_frag.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_text_frag.glsl b/source/blender/gpu/shaders/gpu_shader_text_frag.glsl
index 4869a6360fa..c8c90d8bf09 100644
--- a/source/blender/gpu/shaders/gpu_shader_text_frag.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_text_frag.glsl
@@ -1,6 +1,6 @@
flat varying vec4 color;
-varying vec2 texcoord;
+noperspective varying vec2 texcoord;
uniform sampler2D glyph;