[Bf-blender-cvs] [7e904139a3f] master: Nodes: make dot in socket shape circular

Jacques Lucke noreply at git.blender.org
Fri Sep 24 13:34:01 CEST 2021


Commit: 7e904139a3f638202e1c68d8860dc14c8c1890f2
Author: Jacques Lucke
Date:   Fri Sep 24 13:33:06 2021 +0200
Branches: master
https://developer.blender.org/rB7e904139a3f638202e1c68d8860dc14c8c1890f2

Nodes: make dot in socket shape circular

Previously, it was a diamond shape when the overall
shape was a diamond.

===================================================================

M	source/blender/gpu/shaders/gpu_shader_keyframe_shape_frag.glsl

===================================================================

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



More information about the Bf-blender-cvs mailing list