Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-09-24 14:33:06 +0300
committerJacques Lucke <jacques@blender.org>2021-09-24 14:33:28 +0300
commit7e904139a3f638202e1c68d8860dc14c8c1890f2 (patch)
treed4d22a0f597e4ceec8d57e25033fa47525b61283
parent2b5733ff0122859b713ad9199d715add496c1608 (diff)
Nodes: make dot in socket shape circular
Previously, it was a diamond shape when the overall shape was a diamond.
-rw-r--r--source/blender/gpu/shaders/gpu_shader_keyframe_shape_frag.glsl2
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. */