This commit moves the API of selecting faces, vertices and edges to a DRW manager engine. Reviewers: campbellbarton, fclem Subscribers: jbakker, brecht Differential Revision: https://developer.blender.org/D5090
15 lines
170 B
GLSL
15 lines
170 B
GLSL
|
|
#ifdef UNIFORM_ID
|
|
uniform int id;
|
|
# define id floatBitsToUint(intBitsToFloat(id))
|
|
#else
|
|
flat in uint id;
|
|
#endif
|
|
|
|
out uint fragColor;
|
|
|
|
void main()
|
|
{
|
|
fragColor = id;
|
|
}
|