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 651d8bfd98 3D View: Move selection API to a Selection engine.
This commit moves the API of selecting faces, vertices and edges to a DRW manager engine.

Reviewers: campbellbarton, fclem

Subscribers: jbakker, brecht

Differential Revision: https://developer.blender.org/D5090
2019-07-30 06:46:59 -03:00

15 lines
170 B
GLSL

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