Blender V5.3
gpu_shader_material_ray_portal.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]]
11 float3 /*position*/,
12 float3 /*direction*/,
13 float weight,
14 KernelGlobals &kg,
15 ShadingData &sd,
16 Closure &result)
17{
18 ClosureTransparency transparency_data;
19 transparency_data.transmittance = color.rgb * weight;
20 transparency_data.holdout = 0.0f;
21
22 result = closure_eval(kg, sd, transparency_data);
23}
Closure closure_eval(KernelGlobals &kg, ShadingData &sd, ClosureDiffuse diffuse)
void node_bsdf_ray_portal(float4 color, float3, float3, float weight, KernelGlobals &kg, ShadingData &sd, Closure &result)