diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-05-14 01:18:00 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-05-14 01:18:00 +0300 |
commit | a0c564f86aafd17f1614620dbe918898635a1e35 (patch) | |
tree | 27007fcd067b55a95b90893ff5efe958188252cc /source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl | |
parent | 2c1396b6cbbe503a1d1af0a7da1f09d3086abec6 (diff) |
Eevee: Hair: Disable SSR for hairs.
SSR does not work with hair strands. Basically, the rays are too much
random to ever converge properly and just result in a soup of self
inter reflections.
So forcing it to not produce any SSR. Could potentially save some bandwidth
by not rendering hair to the SSR buffers.
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl b/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl index 80d305cb1e8..704b039e0f6 100644 --- a/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl +++ b/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl @@ -671,6 +671,7 @@ struct Closure { /* This is hacking ssr_id to tag transparent bsdf */ #define TRANSPARENT_CLOSURE_FLAG -2 #define REFRACT_CLOSURE_FLAG -3 +#define NO_SSR -999 # ifdef USE_SSS # ifdef USE_SSS_ALBEDO |