1 2uniform float sizeVertex; 3 4in vec3 pos; 5 6#ifndef UNIFORM_ID 7uniform int offset; 8in uint color; 9 10flat out uint id; 11#endif 12 13void main() 14{ 15#ifndef UNIFORM_ID 16 id = floatBitsToUint(intBitsToFloat(offset)) + color; 17#endif 18 19 vec3 world_pos = point_object_to_world(pos); 20 gl_Position = point_world_to_ndc(world_pos); 21 gl_PointSize = sizeVertex; 22 23#ifdef USE_WORLD_CLIP_PLANES 24 world_clip_planes_calc_clip_distance(world_pos); 25#endif 26} 27