diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-10-29 21:40:28 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-10-29 21:44:02 +0300 |
commit | 8e6882a70dc4026c6c59e3ca3db4ad6714fe41da (patch) | |
tree | 14aecfa03faa9725452c174842dec910b9903e49 /source/blender/draw/engines/eevee/shaders/default_frag.glsl | |
parent | 1907081f0eb11caf024bdac350945d8f36496c51 (diff) |
Fix T69468 EEVEE: Collections Holdout Button in Outliner Is Ignored
Not the cleanest implementation but the simplest.
This doubles the number of default shader variations.
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/default_frag.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/default_frag.glsl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/default_frag.glsl b/source/blender/draw/engines/eevee/shaders/default_frag.glsl index ca06d458f6e..a031ed193b6 100644 --- a/source/blender/draw/engines/eevee/shaders/default_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/default_frag.glsl @@ -41,5 +41,10 @@ Closure nodetree_exec(void) gl_FragDepth = 0.0; #endif +#ifdef HOLDOUT + cl = CLOSURE_DEFAULT; + cl.holdout = 1.0; +#endif + return cl; } |