Blender V5.3
gpu_shader_material_translucent.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
9
10[[node]]
12 float4 color, float3 N, float weight, KernelGlobals &kg, ShadingData &sd, Closure &result)
13{
14 color = max(color, float4(0.0f));
16
17 ClosureTranslucent translucent_data;
18 translucent_data.color = color.rgb * weight;
19 translucent_data.N = N;
20
21 result = closure_eval(kg, sd, translucent_data);
22}
btScalar max
Closure closure_eval(KernelGlobals &kg, ShadingData &sd, ClosureDiffuse diffuse)
void node_bsdf_translucent(float4 color, float3 N, float weight, KernelGlobals &kg, ShadingData &sd, Closure &result)
VecT safe_normalize(VecT vector)
#define N