From e9fb1742f33914effd247c644d0abc3ef1ffa6c5 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 15 九月 2025 10:46:24 +0800
Subject: [PATCH] 0312 描边调细
---
Shader/OutlineEx.shader | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Shader/OutlineEx.shader b/Shader/OutlineEx.shader
index 996e0a6..2ff0a38 100644
--- a/Shader/OutlineEx.shader
+++ b/Shader/OutlineEx.shader
@@ -134,7 +134,7 @@
const fixed sinArray[12] = { 0, 0.5, 0.866, 1, 0.866, 0.5, 0, -0.5, -0.866, -1, -0.866, -0.5 };
const fixed cosArray[12] = { 1, 0.866, 0.5, 0, -0.5, -0.866, -1, -0.866, -0.5, 0, 0.5, 0.866 };
- float2 pos = IN.texcoord + _MainTex_TexelSize.xy * float2(cosArray[pIndex], sinArray[pIndex]) * IN.normal.z*0.2; //normal.z 瀛樻斁 _OutlineWidth
+ float2 pos = IN.texcoord + _MainTex_TexelSize.xy * float2(cosArray[pIndex], sinArray[pIndex]) * IN.normal.z*0.12; //normal.z 瀛樻斁 _OutlineWidth
return IsInRect(pos, IN.uv1, IN.uv2) * (tex2D(_MainTex, pos) + _TextureSampleAdd).w * IN.tangent.w; //tangent.w 瀛樻斁 _OutlineColor.w
}
--
Gitblit v1.8.0