diff options
author | Jacques Lucke <jacques@blender.org> | 2021-09-24 14:33:06 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-09-24 14:33:28 +0300 |
commit | 7e904139a3f638202e1c68d8860dc14c8c1890f2 (patch) | |
tree | d4d22a0f597e4ceec8d57e25033fa47525b61283 /source/blender/gpu | |
parent | 2b5733ff0122859b713ad9199d715add496c1608 (diff) |
Nodes: make dot in socket shape circular
Previously, it was a diamond shape when the overall
shape was a diamond.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_keyframe_shape_frag.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_keyframe_shape_frag.glsl b/source/blender/gpu/shaders/gpu_shader_keyframe_shape_frag.glsl index f0ff70f7690..a3b61dca8b4 100644 --- a/source/blender/gpu/shaders/gpu_shader_keyframe_shape_frag.glsl +++ b/source/blender/gpu/shaders/gpu_shader_keyframe_shape_frag.glsl @@ -67,7 +67,7 @@ void main() if (outline_dist < 0) { /* Middle dot */ if (test(GPU_KEYFRAME_SHAPE_INNER_DOT)) { - alpha = max(alpha, 1 - smoothstep(thresholds[2], thresholds[3], radius)); + alpha = max(alpha, 1 - smoothstep(thresholds[2], thresholds[3], length(absPos))); } /* Up and down arrow-like shading. */ |