style: format

This commit is contained in:
mob-sakai
2025-10-15 12:53:10 +09:00
parent e6fb78a0f6
commit 06a280ec5a
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -691,11 +691,11 @@ namespace Coffee.UIEffects
return Mathf.Max(Mathf.Abs(cos - sin), Mathf.Abs(cos + sin));
}
#if UNITY_2021_2_OR_NEWER
#if UNITY_2021_2_OR_NEWER
private static void SetKeyword(Material material, Span<string> keywords, int index)
#else
#else
private static void SetKeyword(Material material, string[] keywords, int index)
#endif
#endif
{
var length = keywords.Length;
if (index < length && !string.IsNullOrEmpty(keywords[index]))
+1 -1
View File
@@ -608,7 +608,7 @@ half4 uieffect(half4 origin, float2 uv, float4 uvMask, float4 wpos)
uvGrad = saturate(mul(_MirrorGradViewMatrix, wpos)).xy;
uvMask.x += 4;
}
const float isShadow = uvMask.x < 0 ? 1 : 0;
uvMask.x += isShadow * 2;
@@ -5,7 +5,7 @@ Shader "CustomRenderTexture/UIEffect/Multiply (Alpha)"
[Header(Main)]
_MainTex ("Main Texture", 2D) = "white" {}
_MainTex_Speed ("Main Texture Speed", Vector) = (0,0,0,0)
[Header(Detail)]
_DetailTex ("Detail Texture", 2D) = "white" {}
_DetailTex_Speed ("Detail Texture Speed", Vector) = (0,0,0,0)