Fix typo error at render-effect shader code 12/321012/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 26 Nov 2024 11:25:56 +0000 (20:25 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Tue, 26 Nov 2024 11:25:56 +0000 (20:25 +0900)
Change-Id: I43c40339167013e870e4ae412d944fb71c394384
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali-toolkit/internal/graphics/shaders/render-effect.frag

index bbe99fe56f35e2550644f535f46b78dddd430239..8c5cb72d316193901b52311db1274d5a1afdbba6 100644 (file)
@@ -59,7 +59,7 @@ float roundedBoxSDF(vec2 pixelPositionFromCenter, vec2 rectangleEdgePositionFrom
   return sqrt(((positiveDiff.x + positiveDiff.y)
                + sqrt(positiveDiff.x * positiveDiff.x
                       + positiveDiff.y * positiveDiff.y
-                      + (2.0 - 4.0 * squareness * gSquareness) * positiveDiff.x * positiveDiff.y))
+                      + (2.0 - 4.0 * squareness * squareness) * positiveDiff.x * positiveDiff.y))
               * 0.5)
          + min(0.0, max(diff.x, diff.y)) ///< Consider negative potential, to avoid visual defect when radius is zero
          - radius;