diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-07-24 16:36:22 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-07-24 16:36:22 +0300 |
commit | c5f4342692b10110200e3494a1e9412e75270c10 (patch) | |
tree | 8f3b47d2133aa0c4685d99b8cd779706cb72ba17 /source/blender/draw/engines/eevee/shaders/raytrace_lib.glsl | |
parent | f6c60ffcadc0e3ea2d14c48e96120010751ae53c (diff) |
Eevee: SSR: Small fixes
- Encode normals for other opaque bsdf so they are not rejected by the normal facing test.
- Early out non reflective surfaces.
- Add small offset to raytrace to avoid self intersection.
- Fix fallback probes not appearing.
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/raytrace_lib.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/raytrace_lib.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/raytrace_lib.glsl b/source/blender/draw/engines/eevee/shaders/raytrace_lib.glsl index d2a9b5843c5..d0c60310a00 100644 --- a/source/blender/draw/engines/eevee/shaders/raytrace_lib.glsl +++ b/source/blender/draw/engines/eevee/shaders/raytrace_lib.glsl @@ -96,7 +96,7 @@ float raycast(sampler2D depth_texture, vec3 ray_origin, vec3 ray_dir, float ray_ float end = P1.x * step_sign; /* Initial offset */ - pqk += dPQK * ray_jitter; + pqk += dPQK * (0.01 + ray_jitter); bool hit = false; float raw_depth; |