I imagined that could be a problem for some drivers. I should have avoided.
16 lines
189 B
GLSL
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;
|
|
}
|