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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-28 00:32:13 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-28 00:32:13 +0300
commitc263ccf250b5cc3a5dd1f6cec29884d89ad79b7b (patch)
tree5dfb262c3f3335c5bb81ffbc16abd85798a518ec /source/blender/gpu
parentf589b28f8022bbe2278be6893c432b15c08937e2 (diff)
Fix T63023: wrong Eevee window coordinates for background.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_material.glsl4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl
index b595e916aad..c58758dd2e1 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -1905,9 +1905,7 @@ void node_tex_coord_background(
object = coords;
camera = vec3(co.xy, -co.z);
- window = (ProjectionMatrix[3][3] == 0.0) ?
- vec3(mtex_2d_mapping(I).xy * camerafac.xy + camerafac.zw, 0.0) :
- vec3(vec2(0.5) * camerafac.xy + camerafac.zw, 0.0);
+ window = vec3(mtex_2d_mapping(I).xy * camerafac.xy + camerafac.zw, 0.0);
reflection = -coords;
}