Fix EEVEE: Planar Reflection data has inverted facing

Unreported bug
This commit is contained in:
Clément Foucault 2020-01-16 15:42:59 +01:00
parent faf563d27c
commit 0461ff764a
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}