diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-01-16 17:42:59 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-01-16 17:56:45 +0300 |
commit | 0461ff764afbaa58676b6711b2273ee2f9dcd647 (patch) | |
tree | 31a0ec71e12dafa16fb19cab30a038572f5ad9ff | |
parent | faf563d27ca8aa5451be7f835f8f6798a00c1699 (diff) |
Fix EEVEE: Planar Reflection data has inverted facing
Unreported bug
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/lightprobe_planar_display_vert.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |