Skip to content

Commit

Permalink
refactor: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Jun 24, 2024
1 parent 66d6075 commit c018619
Show file tree
Hide file tree
Showing 34 changed files with 1,921 additions and 1,587 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Shader "Hidden/UI/Additive (SoftMaskable)"
color.a *= m.x * m.y;
#endif

color.a *= SoftMask(IN.vertex, mul(unity_ObjectToWorld, IN.worldPosition)); // Add for soft mask
color.a *= SoftMask(IN.vertex, IN.worldPosition, color.a); // Add for soft mask
#ifdef UNITY_UI_ALPHACLIP
clip (color.a - 0.001);
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Shader "UI/Additive (SoftMaskable)"
color.a *= m.x * m.y;
#endif

color.a *= SoftMask(IN.vertex, mul(unity_ObjectToWorld, IN.worldPosition)); // Add for soft mask
color.a *= SoftMask(IN.vertex, IN.worldPosition, color.a); // Add for soft mask
#ifdef UNITY_UI_ALPHACLIP
clip (color.a - 0.001);
#endif
Expand Down
122 changes: 6 additions & 116 deletions Assets/Demos/TextMeshPro Support/CarterOne-Regular SDF.asset

Large diffs are not rendered by default.

Loading

0 comments on commit c018619

Please sign in to comment.