Blender Git Loki

Git Commits -> Revision 5e3f902

Revision 5e3f902 by Clément Foucault (master)
June 23, 2017, 20:51 (GMT)
Eevee: Planar Reflection: Fix precision issue near cliplane.

The problem was that the depth prepass was using the clip plane but not the shading pass.

During the clipping stage, the triangle is converted to a quad clipped to the given clip plane.
But this introduce subtle changes in the depth when this new geometry is rasterized. Since the shading pass was using an EQUAL depth test, the depth values from the shading pass were not always equal to the depth prepass.

Enabling clipping in the shading vertex shader has a too small impact to require a dedicated shader.

Commit Details:

Full Hash: 5e3f902eaa35aaba8e6d27dc9d39fdf4d9a37e3e
Parent Commit: 1111e64
Lines Changed: +8, -2

2 Modified Paths:

/source/blender/draw/engines/eevee/eevee_materials.c (+2, -2) (Diff)
/source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl (+6, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021