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

16 lines
189 B
GLSL
Raw Normal View History

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