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
parent0ea8430549374efd3092b6f28913a5f60e574296 (diff)
fix simple 2D built-in shaders
Forgot the projection matrix.
-rw-r--r--source/blender/gpu/shaders/gpu_shader_2D_smooth_color_vert.glsl2
-rw-r--r--source/blender/gpu/shaders/gpu_shader_2D_uniform_color_vert.glsl2
2 files changed, 2 insertions, 2 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;
}
diff --git a/source/blender/gpu/shaders/gpu_shader_2D_uniform_color_vert.glsl b/source/blender/gpu/shaders/gpu_shader_2D_uniform_color_vert.glsl
index 68d9941195b..7ad30052cf5 100644
--- a/source/blender/gpu/shaders/gpu_shader_2D_uniform_color_vert.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_2D_uniform_color_vert.glsl
@@ -7,5 +7,5 @@
void main()
{
- gl_Position = gl_ModelViewMatrix * vec4(pos, 0.0, 1.0);
+ gl_Position = gl_ModelViewProjectionMatrix * vec4(pos, 0.0, 1.0);
}