This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/gpu/shaders/gpu_shader_selection_id_frag.glsl

14 lines
122 B
GLSL
Raw Normal View History

#ifdef UNIFORM_ID
uniform uint id;
#else
flat in uint id;
#endif
out uint fragColor;
void main()
{
fragColor = id;
}