mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-11-19 17:22:37 +08:00
style: format
This commit is contained in:
@@ -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]))
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user