Nodes: make dot in socket shape circular

Previously, it was a diamond shape when the overall
shape was a diamond.
This commit is contained in:
Jacques Lucke 2021-09-24 13:33:06 +02:00
parent 2b5733ff01
commit 7e904139a3
1 changed files with 1 additions and 1 deletions

View File

@ -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. */