Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gpu_shader_material_point_info.glsl « material « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 251103ae57c777942de22f57206f8ae14a1677b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma BLENDER_REQUIRE(gpu_shader_common_hash.glsl)

void node_point_info(out vec3 position, out float radius, out float random)
{
#ifdef POINTCLOUD_SHADER
  position = pointPosition;
  radius = pointRadius;
  random = wang_hash_noise(uint(pointID));
#else
  position = vec3(0.0, 0.0, 0.0);
  radius = 0.0;
  random = 0.0;
#endif
}