diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-28 00:32:13 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-28 00:32:13 +0300 |
commit | c263ccf250b5cc3a5dd1f6cec29884d89ad79b7b (patch) | |
tree | 5dfb262c3f3335c5bb81ffbc16abd85798a518ec | |
parent | f589b28f8022bbe2278be6893c432b15c08937e2 (diff) |
Fix T63023: wrong Eevee window coordinates for background.
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_material.glsl | 4 |
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; } |