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

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

out uint fragColor;

void main()
{
  fragColor = _id;
}