diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-01-10 14:37:42 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-01-10 14:51:21 +0300 |
commit | f813aab787376be0c9649d0480d84f1aa6332371 (patch) | |
tree | 741832e569f2407811cb6a90fa134ec34bee3af7 /source/blender/gpu/shaders | |
parent | cfb3f5062ddfbe8974d4cafab16b6b6e25f1d9b9 (diff) |
Remove GPU_SHADER_3D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_OUTLINE_AA.
Shader isn't used and isn't accessible via py-api.
Diffstat (limited to 'source/blender/gpu/shaders')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_3D_point_uniform_size_outline_aa_vert.glsl | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_3D_point_uniform_size_outline_aa_vert.glsl b/source/blender/gpu/shaders/gpu_shader_3D_point_uniform_size_outline_aa_vert.glsl deleted file mode 100644 index fb5506a778d..00000000000 --- a/source/blender/gpu/shaders/gpu_shader_3D_point_uniform_size_outline_aa_vert.glsl +++ /dev/null @@ -1,33 +0,0 @@ - -uniform mat4 ModelViewProjectionMatrix; -#ifdef USE_WORLD_CLIP_PLANES -uniform mat4 ModelMatrix; -#endif -uniform float size; -uniform float outlineWidth; - -in vec3 pos; -out vec4 radii; - -void main() -{ - vec4 pos_4d = vec4(pos, 1.0); - gl_Position = ModelViewProjectionMatrix * pos_4d; - gl_PointSize = size; - - /* calculate concentric radii in pixels */ - float radius = 0.5 * size; - - /* start at the outside and progress toward the center */ - radii[0] = radius; - radii[1] = radius - 1.0; - radii[2] = radius - outlineWidth; - radii[3] = radius - outlineWidth - 1.0; - - /* convert to PointCoord units */ - radii /= size; - -#ifdef USE_WORLD_CLIP_PLANES - world_clip_planes_calc_clip_distance((ModelMatrix * pos_4d).xyz); -#endif -} |