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:
authorClément Foucault <foucault.clem@gmail.com>2017-02-16 16:24:50 +0300
committerClément Foucault <foucault.clem@gmail.com>2017-02-16 18:22:44 +0300
commit268670cdee483ac47fb5abdd670924973e00aa6c (patch)
treee3e62c7029b9ffa6f73a2fcbb57ecd814288dd64 /source/blender/gpu
parentd8df7ce6a4b7614011ddfa0861497151ee1607e7 (diff)
Clay Engine: Fix Axis Name shader
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_instance_screenspace_axis_name_vert.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_instance_screenspace_axis_name_vert.glsl b/source/blender/gpu/shaders/gpu_shader_instance_screenspace_axis_name_vert.glsl
index a7accd9c3e0..a39bfde41ee 100644
--- a/source/blender/gpu/shaders/gpu_shader_instance_screenspace_axis_name_vert.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_instance_screenspace_axis_name_vert.glsl
@@ -24,6 +24,6 @@ void main()
offset = vec3(0.0, 0.0, 1.125);
vec3 screen_pos = screen_vecs[0].xyz * pos.x + screen_vecs[1].xyz * pos.y;
- gl_Position = ViewProjectionMatrix * InstanceModelMatrix * vec4((screen_pos + offset) * size, 1.0);
+ gl_Position = ViewProjectionMatrix * (InstanceModelMatrix * vec4(offset * size, 1.0) + vec4(screen_pos * size, 0.0));
finalColor = vec4(color, 1.0);
}