[Bf-blender-cvs] [0461ff764af] blender-v2.82-release: Fix EEVEE: Planar Reflection data has inverted facing

Clément Foucault noreply at git.blender.org
Thu Jan 16 15:56:59 CET 2020


Commit: 0461ff764afbaa58676b6711b2273ee2f9dcd647
Author: Clément Foucault
Date:   Thu Jan 16 15:42:59 2020 +0100
Branches: blender-v2.82-release
https://developer.blender.org/rB0461ff764afbaa58676b6711b2273ee2f9dcd647

Fix EEVEE: Planar Reflection data has inverted facing

Unreported bug

===================================================================

M	source/blender/draw/engines/eevee/shaders/lightprobe_planar_display_vert.glsl

===================================================================

diff --git a/source/blender/draw/engines/eevee/shaders/lightprobe_planar_display_vert.glsl b/source/blender/draw/engines/eevee/shaders/lightprobe_planar_display_vert.glsl
index 540f2ac4728..65506e5c7b1 100644
--- a/source/blender/draw/engines/eevee/shaders/lightprobe_planar_display_vert.glsl
+++ b/source/blender/draw/engines/eevee/shaders/lightprobe_planar_display_vert.glsl
@@ -9,7 +9,7 @@ flat out int probeIdx;
 
 void main()
 {
-  gl_Position = ViewProjectionMatrix * probe_mat * vec4(pos, 1.0);
-  worldPosition = (probe_mat * vec4(pos, 1.0)).xyz;
+  worldPosition = (probe_mat * vec4(-pos.x, pos.y, 0.0, 1.0)).xyz;
+  gl_Position = ViewProjectionMatrix * vec4(worldPosition, 1.0);
   probeIdx = probe_id;
 }



More information about the Bf-blender-cvs mailing list