diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2022-04-29 08:14:16 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-04-29 16:15:04 +0300 |
commit | 3d877c8a0d06ee539db541c6d410852f94fc618d (patch) | |
tree | 047b92a10ee88c7e756b27f6729551a2070a9bdb /source/blender/draw/engines/select/shaders/selection_id_frag.glsl | |
parent | a111a0f1e149dfbcf06b1dfd15d9764508d83028 (diff) |
Select Engine: port shader to use 'GPUShaderCreateInfo'
Simple port with a few cosmetic changes:
- Attribute named "color" for indices VBO is now called "index"
- The indices VBO is now composed of `int`s instead of `uint`s (this simplifies the source)
Differential Revision: https://developer.blender.org/D14800
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.glsl | 15 |
1 files changed, 0 insertions, 15 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 deleted file mode 100644 index a84bbbb2cac..00000000000 --- a/source/blender/draw/engines/select/shaders/selection_id_frag.glsl +++ /dev/null @@ -1,15 +0,0 @@ - -#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; -} |