This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/draw/engines/select/shaders/selection_id_frag.glsl
Germano Cavalcante 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;
}