Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormano-wii <germano.costa@ig.com.br>2019-07-30 12:46:59 +0300
committermano-wii <germano.costa@ig.com.br>2019-07-30 12:46:59 +0300
commit651d8bfd98db11eb58018412cc030cfe2705c519 (patch)
treec1d0dbd948383c61636261a1ad113d094577e97e /source/blender/draw/engines/select/shaders/selection_id_frag.glsl
parenta85963bed86bb25b29a70f893cc9e9279a0b9d15 (diff)
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
Diffstat (limited to 'source/blender/draw/engines/select/shaders/selection_id_frag.glsl')
-rw-r--r--source/blender/draw/engines/select/shaders/selection_id_frag.glsl14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/draw/engines/select/shaders/selection_id_frag.glsl b/source/blender/draw/engines/select/shaders/selection_id_frag.glsl
new file mode 100644
index 00000000000..ea86ddc7301
--- /dev/null
+++ b/source/blender/draw/engines/select/shaders/selection_id_frag.glsl
@@ -0,0 +1,14 @@
+
+#ifdef UNIFORM_ID
+uniform int id;
+# define id floatBitsToUint(intBitsToFloat(id))
+#else
+flat in uint id;
+#endif
+
+out uint fragColor;
+
+void main()
+{
+ fragColor = id;
+}