Blender Git Loki

Git Commits -> Revision 99f37bf

Revision 99f37bf by Clément Foucault (master)
August 10, 2017, 13:43 (GMT)
Eevee: SSR: Refine Raytrace Algorithm.

We track the previous ray position offseted by the thickness. If the sampled depth is between this value and the current ray position then we have a hit.
This fixes rays that are almost colinear with the view vector. Thickness is now only important for rays that are comming back to the camera.

As a consequence, this simplify a lot of things.

Also include some refactor.

Commit Details:

Full Hash: 99f37bf2a2ad452ee995cd8ce9ce60d010b1f7f9
Parent Commit: 292f5ab
Lines Changed: +133, -149

4 Modified Paths:

/source/blender/draw/engines/eevee/eevee_effects.c (+1, -1) (Diff)
/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl (+7, -0) (Diff)
/source/blender/draw/engines/eevee/shaders/effect_ssr_frag.glsl (+52, -75) (Diff)
/source/blender/draw/engines/eevee/shaders/raytrace_lib.glsl (+73, -73) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021