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

selection_id_frag.glsl « shaders « select « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ea86ddc73016b6d5c091117d35d94b0e2d67934e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

#ifdef UNIFORM_ID
uniform int id;
#  define id floatBitsToUint(intBitsToFloat(id))
#else
flat in uint id;
#endif

out uint fragColor;

void main()
{
  fragColor = id;
}