fix sample

This commit is contained in:
DCFApixels 2025-04-21 20:08:25 +08:00
parent 89427b41f9
commit 4b709366d9

View File

@ -54,7 +54,9 @@ Shader "DCFApixels/DebugX/Samples/FakeLighth"
fixed4 frag (v2f i) : SV_Target fixed4 frag (v2f i) : SV_Target
{ {
return _Color * (1.0 - Unity_PolarCoordinates_float(i.uv, float2(0.5, 0.5), 1, 1).r); float m = (1.0 - Unity_PolarCoordinates_float(i.uv, float2(0.5, 0.5), 1, 1).r);
m = clamp(m, 0, 1);
return _Color * m;
} }
ENDCG ENDCG
} }