Blender V5.3
gpu_shader_material_holdout.bsl.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2019-2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
8
9[[node]]
10void node_holdout(float weight, KernelGlobals &kg, ShadingData &sd, Closure &result)
11{
12 ClosureTransparency transparency_data;
13 transparency_data.transmittance = float3(0.0f);
14 transparency_data.holdout = weight;
15
16 result = closure_eval(kg, sd, transparency_data);
17}
Closure closure_eval(KernelGlobals &kg, ShadingData &sd, ClosureDiffuse diffuse)
void node_holdout(float weight, KernelGlobals &kg, ShadingData &sd, Closure &result)