diff options
Diffstat (limited to 'source/blender/gpu/shaders/material/gpu_shader_material_holdout.glsl')
-rw-r--r-- | source/blender/gpu/shaders/material/gpu_shader_material_holdout.glsl | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/gpu/shaders/material/gpu_shader_material_holdout.glsl b/source/blender/gpu/shaders/material/gpu_shader_material_holdout.glsl index 50ce2bf2ab8..075fd3ec835 100644 --- a/source/blender/gpu/shaders/material/gpu_shader_material_holdout.glsl +++ b/source/blender/gpu/shaders/material/gpu_shader_material_holdout.glsl @@ -1,8 +1,4 @@ -void node_holdout(out Closure result) +void node_holdout(float weight, out Closure result) { - result = CLOSURE_DEFAULT; -#ifndef VOLUMETRICS - result.holdout = 1.0; - result.flag = CLOSURE_HOLDOUT_FLAG; -#endif + g_transparency_data.holdout += weight; } |