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: d717ac97b2835cef14c36d120d51e23d4b43a69c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

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
}