Eevee: Planar Reflections: Fix corrupted results in downsampling step.

It only seems to happen in some drivers/gpu, the vertices gets culled if 4th component is 0.0. So lesson learned: always use 1.0 if constant.
This commit is contained in:
Clément Foucault
2018-03-10 02:18:12 +01:00
parent 92c2e2f386
commit f3161bd2ab

View File

@@ -11,13 +11,13 @@ void main() {
gl_Layer = instance[0];
layer = float(instance[0]);
gl_Position = vec4(vPos[0], 0.0, 0.0);
gl_Position = vec4(vPos[0], 0.0, 1.0);
EmitVertex();
gl_Position = vec4(vPos[1], 0.0, 0.0);
gl_Position = vec4(vPos[1], 0.0, 1.0);
EmitVertex();
gl_Position = vec4(vPos[2], 0.0, 0.0);
gl_Position = vec4(vPos[2], 0.0, 1.0);
EmitVertex();
EndPrimitive();