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/engines/eevee/shaders/background_vert.glsl')
-rw-r--r--source/blender/draw/engines/eevee/shaders/background_vert.glsl12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/background_vert.glsl b/source/blender/draw/engines/eevee/shaders/background_vert.glsl
index 8b4bc3382f4..aff8e0857f6 100644
--- a/source/blender/draw/engines/eevee/shaders/background_vert.glsl
+++ b/source/blender/draw/engines/eevee/shaders/background_vert.glsl
@@ -12,16 +12,16 @@ out vec3 viewNormal;
void main()
{
- gl_Position = vec4(pos, 1.0, 1.0);
- viewPosition = vec3(pos, -1.0);
+ gl_Position = vec4(pos, 1.0, 1.0);
+ viewPosition = vec3(pos, -1.0);
#ifndef VOLUMETRICS
- /* Not used in practice but needed to avoid compilation errors. */
- worldPosition = viewPosition;
- worldNormal = viewNormal = normalize(-viewPosition);
+ /* Not used in practice but needed to avoid compilation errors. */
+ worldPosition = viewPosition;
+ worldNormal = viewNormal = normalize(-viewPosition);
#endif
#ifdef USE_ATTR
- pass_attr(viewPosition);
+ pass_attr(viewPosition);
#endif
}