Blender
V5.3
source
blender
gpu
shaders
material
gpu_shader_material_implicit_defaults.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
world_normals_get
(
const
ShadingData
&sd,
float3
&
N
)
11
{
12
N
= sd.
N
;
13
}
14
15
[[
node
]]
16
void
world_position_get
(
const
ShadingData
&sd,
float3
&
P
)
17
{
18
P
= sd.
P
;
19
}
node
#define node
Definition
gpu_shader_cxx_attribute.hh:142
world_position_get
void world_position_get(const ShadingData &sd, float3 &P)
Definition
gpu_shader_material_implicit_defaults.bsl.hh:16
world_normals_get
void world_normals_get(const ShadingData &sd, float3 &N)
Definition
gpu_shader_material_implicit_defaults.bsl.hh:10
gpu_shader_material_interface.bsl.hh
N
#define N
Definition
mball_tessellate.cc:278
ShadingData
Definition
eevee_nodetree_lib.bsl.hh:56
ShadingData::N
packed_float3 N
Definition
eevee_nodetree_lib.bsl.hh:62
ShadingData::P
packed_float3 P
Definition
eevee_nodetree_lib.bsl.hh:60
float3
Definition
sky_math.h:135
P
#define P
Definition
uvedit_clipboard_graph_iso.cc:30
Generated on
for Blender by
doxygen
1.18.0