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/object_outline_prepass_vert.glsl')
-rw-r--r--source/blender/draw/modes/shaders/object_outline_prepass_vert.glsl10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/draw/modes/shaders/object_outline_prepass_vert.glsl b/source/blender/draw/modes/shaders/object_outline_prepass_vert.glsl
index 744bf0ff1e3..0b5f4733ebc 100644
--- a/source/blender/draw/modes/shaders/object_outline_prepass_vert.glsl
+++ b/source/blender/draw/modes/shaders/object_outline_prepass_vert.glsl
@@ -10,12 +10,12 @@ out vec3 vPos;
void main()
{
- vPos = (ModelViewMatrix * vec4(pos, 1.0)).xyz;
- pPos = ModelViewProjectionMatrix * vec4(pos, 1.0);
- /* Small bias to always be on top of the geom. */
- pPos.z -= 1e-3;
+ vPos = (ModelViewMatrix * vec4(pos, 1.0)).xyz;
+ pPos = ModelViewProjectionMatrix * vec4(pos, 1.0);
+ /* Small bias to always be on top of the geom. */
+ pPos.z -= 1e-3;
#ifdef USE_WORLD_CLIP_PLANES
- world_clip_planes_calc_clip_distance((ModelMatrix * vec4(pos, 1.0)).xyz);
+ world_clip_planes_calc_clip_distance((ModelMatrix * vec4(pos, 1.0)).xyz);
#endif
}