diff options
Diffstat (limited to 'source/blender/draw/engines/workbench/shaders/workbench_object_outline_lib.glsl')
-rw-r--r-- | source/blender/draw/engines/workbench/shaders/workbench_object_outline_lib.glsl | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/source/blender/draw/engines/workbench/shaders/workbench_object_outline_lib.glsl b/source/blender/draw/engines/workbench/shaders/workbench_object_outline_lib.glsl deleted file mode 100644 index a4a5d9c31a3..00000000000 --- a/source/blender/draw/engines/workbench/shaders/workbench_object_outline_lib.glsl +++ /dev/null @@ -1,12 +0,0 @@ -#define OBJECT_OUTLINE_OFFSET 1 - -float calculate_object_outline(usampler2D objectId, ivec2 texel, uint object_id) -{ - uvec4 oid_offset = uvec4( - texelFetchOffset(objectId, texel, 0, ivec2(0, OBJECT_OUTLINE_OFFSET)).r, - texelFetchOffset(objectId, texel, 0, ivec2(0, -OBJECT_OUTLINE_OFFSET)).r, - texelFetchOffset(objectId, texel, 0, ivec2(-OBJECT_OUTLINE_OFFSET, 0)).r, - texelFetchOffset(objectId, texel, 0, ivec2(OBJECT_OUTLINE_OFFSET, 0)).r); - - return dot(vec4(equal(uvec4(object_id), oid_offset)), vec4(0.25)); -} |