Blender
V5.3
source
blender
gpu
shaders
material
gpu_shader_material_point_info.bsl.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2022 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
7
#include "
gpu_shader_common_hash.bsl.hh
"
8
#include "
gpu_shader_material_interface.bsl.hh
"
9
10
[[
node
]]
11
void
node_point_info
(
ShadingData
&sd,
float3
&
position
,
float
&radius,
float
&
random
)
12
{
13
position
= sd.
point_position
;
14
radius = sd.
point_radius
;
15
random
=
wang_hash_noise
(uint(sd.
point_id
));
16
}
gpu_shader_common_hash.bsl.hh
wang_hash_noise
float wang_hash_noise(uint s)
Definition
gpu_shader_common_hash.bsl.hh:320
position
#define position
Definition
gpu_shader_cxx_attribute.hh:63
node
#define node
Definition
gpu_shader_cxx_attribute.hh:142
gpu_shader_material_interface.bsl.hh
node_point_info
void node_point_info(ShadingData &sd, float3 &position, float &radius, float &random)
Definition
gpu_shader_material_point_info.bsl.hh:11
random
Definition
eevee_sampling_lib.bsl.hh:85
ShadingData
Definition
eevee_nodetree_lib.bsl.hh:56
ShadingData::point_id
int point_id
Definition
eevee_nodetree_lib.bsl.hh:79
ShadingData::point_radius
float point_radius
Definition
eevee_nodetree_lib.bsl.hh:78
ShadingData::point_position
packed_float3 point_position
Definition
eevee_nodetree_lib.bsl.hh:77
float3
Definition
sky_math.h:135
Generated on
for Blender by
doxygen
1.18.0