diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-04-30 23:23:54 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-05-01 13:09:18 +0300 |
commit | e66629c128258a325ef7d898fb352e3d2552bbcb (patch) | |
tree | 1594b47733dab7e81bf6841549c591df5d4e550c /source/blender/draw/engines/eevee/shaders | |
parent | b581f1929287381fe9c2761dc514d5bfa7cbe41c (diff) |
Eevee: Lookdev: Cleanup implementation & support for Bloom and TAA
Make Lookdev works with bloom and TAA by rendering it before TAA and fixing
the motion vectors of the lookdev balls.
Rework Lookdev to remove much of its complexity. Use simpler matrices with
more understandable setup code.
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/effect_velocity_resolve_frag.glsl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/effect_velocity_resolve_frag.glsl b/source/blender/draw/engines/eevee/shaders/effect_velocity_resolve_frag.glsl index b9e038ceeaf..7d701bce5cb 100644 --- a/source/blender/draw/engines/eevee/shaders/effect_velocity_resolve_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/effect_velocity_resolve_frag.glsl @@ -17,6 +17,9 @@ void main() outData = uv - uv_history; + /* HACK: Reject lookdev spheres from TAA reprojection. */ + outData = (depth > 0.0) ? outData : vec2(0.0); + /* Encode to unsigned normalized 16bit texture. */ outData = outData * 0.5 + 0.5; } |