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-08-07 08:26:29 +0300
committerMike Erwin <significant.bit@gmail.com>2016-08-07 08:26:29 +0300
commitf27516839faaba9c29d975492929b014cb98a019 (patch)
tree548ffedbfc7a7fa2147871d077411553570ebff2 /source/blender/gpu/shaders/gpu_shader_2D_smooth_color_vert.glsl
parent0ea8430549374efd3092b6f28913a5f60e574296 (diff)
fix simple 2D built-in shaders
Forgot the projection matrix.
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_2D_smooth_color_vert.glsl')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_2D_smooth_color_vert.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_2D_smooth_color_vert.glsl b/source/blender/gpu/shaders/gpu_shader_2D_smooth_color_vert.glsl
index e74485bfa4f..49bed5db430 100644
--- a/source/blender/gpu/shaders/gpu_shader_2D_smooth_color_vert.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_2D_smooth_color_vert.glsl
@@ -13,6 +13,6 @@
void main()
{
- gl_Position = gl_ModelViewMatrix * vec4(pos, 0.0, 1.0);
+ gl_Position = gl_ModelViewProjectionMatrix * vec4(pos, 0.0, 1.0);
finalColor = color;
}