diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-07-23 15:03:27 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-07-24 16:36:37 +0300 |
commit | 85f1b7358abb602b5a6200e2da32e82bfbf4ab65 (patch) | |
tree | 55f03d930d3db21bfccc23ff82cc3d2a5afb92f0 /source/blender/draw/engines/eevee/shaders/default_frag.glsl | |
parent | 1d99d08d50fe29be65be3b83da6ba14d5c684132 (diff) |
Eevee: Planar Reflection: Remove distance approximation.
This commit separate the depth texture into another texture array.
This remove the need to output radial depth into alpha.
Unfortunatly it's difficult to recover position from the non linear depth buffer when applying reflection without adding a bunch of stuff.
This is in preparation of SSR planar reflections.
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/default_frag.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/default_frag.glsl | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/default_frag.glsl b/source/blender/draw/engines/eevee/shaders/default_frag.glsl index e39bf09eba8..4ba4192abbd 100644 --- a/source/blender/draw/engines/eevee/shaders/default_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/default_frag.glsl @@ -14,9 +14,5 @@ Closure nodetree_exec(void) Closure result = Closure(radiance, 1.0, vec4(ssr_spec, roughness), normal_encode(normalize(viewNormal), viewCameraVec), 0); -#if !defined(USE_ALPHA_BLEND) && !defined(USE_ALPHA_HASH) && !defined(USE_ALPHA_CLIP) - result.opacity = length(viewPosition); -#endif - return result; } |