Files
test2/source/blender/draw/engines/select/shaders/selection_id_frag.glsl
mano-wii 899d2461bf Fix T68911: "illegal recursive expansion of macro id"
I imagined that could be a problem for some drivers.
I should have avoided.
2019-08-20 21:56:39 -03:00

16 lines
189 B
GLSL

#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;
}