Blender
V5.3
source
blender
gpu
shaders
material
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
7
#include "
gpu_shader_material_interface.bsl.hh
"
8
9
[[
node
]]
10
void
node_shader_to_rgba
(
Closure
cl,
11
[[
resource_table
]]
KernelGlobals
&kg,
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
}
Closure
#define Closure
Definition
eevee_nodetree_closures_lib.bsl.hh:10
closure_to_rgba
float4 closure_to_rgba(KernelGlobals &kg, ShadingData &sd, Closure cl)
Definition
eevee_surf_deferred.bsl.hh:20
resource_table
#define resource_table
Definition
gpu_shader_cxx_attribute.hh:128
node
#define node
Definition
gpu_shader_cxx_attribute.hh:142
gpu_shader_material_interface.bsl.hh
node_shader_to_rgba
void node_shader_to_rgba(Closure cl, KernelGlobals &kg, ShadingData &sd, float4 &outcol, float &outalpha)
Definition
gpu_shader_material_shader_to_rgba.bsl.hh:10
KernelGlobals
Definition
eevee_nodetree_lib.bsl.hh:141
ShadingData
Definition
eevee_nodetree_lib.bsl.hh:56
float4
Definition
sky_math.h:224
Generated on
for Blender by
doxygen
1.18.0