Blender V5.3
gpu_shader_material_shader_to_rgba.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]]
12 ShadingData &sd,
13 float4 &outcol,
14 float &outalpha)
15{
16#ifdef GPU_VERTEX_SHADER
17 outcol = float4(0.0f);
18#else
19 outcol = closure_to_rgba(kg, sd, cl);
20#endif
21 outalpha = outcol.a;
22}
float4 closure_to_rgba(KernelGlobals &kg, ShadingData &sd, Closure cl)
#define resource_table
void node_shader_to_rgba(Closure cl, KernelGlobals &kg, ShadingData &sd, float4 &outcol, float &outalpha)