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:
Diffstat (limited to 'source/blender/draw/modes/shaders/armature_dof_vert.glsl')
-rw-r--r--source/blender/draw/modes/shaders/armature_dof_vert.glsl14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/draw/modes/shaders/armature_dof_vert.glsl b/source/blender/draw/modes/shaders/armature_dof_vert.glsl
index d9d56862140..321614835a1 100644
--- a/source/blender/draw/modes/shaders/armature_dof_vert.glsl
+++ b/source/blender/draw/modes/shaders/armature_dof_vert.glsl
@@ -15,16 +15,16 @@ flat out vec4 finalColor;
vec3 sphere_project(float ax, float az)
{
- float sine = 1.0 - ax * ax - az * az;
- float q3 = sqrt(max(0.0, sine));
+ float sine = 1.0 - ax * ax - az * az;
+ float q3 = sqrt(max(0.0, sine));
- return vec3(-az * q3, 0.5 - sine, ax * q3) * 2.0;
+ return vec3(-az * q3, 0.5 - sine, ax * q3) * 2.0;
}
void main()
{
- vec3 final_pos = sphere_project(pos.x * abs((pos.x > 0.0) ? amax.x : amin.x),
- pos.y * abs((pos.y > 0.0) ? amax.y : amin.y));
- gl_Position = ViewProjectionMatrix * (InstanceModelMatrix * vec4(final_pos, 1.0));
- finalColor = color;
+ vec3 final_pos = sphere_project(pos.x * abs((pos.x > 0.0) ? amax.x : amin.x),
+ pos.y * abs((pos.y > 0.0) ? amax.y : amin.y));
+ gl_Position = ViewProjectionMatrix * (InstanceModelMatrix * vec4(final_pos, 1.0));
+ finalColor = color;
}