mirror of
https://github.com/DCFApixels/Unity-DebugX.git
synced 2025-09-18 01:54:37 +08:00
fix sample
This commit is contained in:
parent
ecb40e4fb9
commit
0db21f8650
@ -7,7 +7,7 @@ Shader "Unlit/FakeLighth"
|
|||||||
SubShader
|
SubShader
|
||||||
{
|
{
|
||||||
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" "PreviewType"="Plane" }
|
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" "PreviewType"="Plane" }
|
||||||
Blend SrcAlpha One, One One
|
Blend One One
|
||||||
ZWrite Off Fog { Mode Off }
|
ZWrite Off Fog { Mode Off }
|
||||||
Lighting Off
|
Lighting Off
|
||||||
ZTest On
|
ZTest On
|
||||||
@ -54,7 +54,7 @@ Shader "Unlit/FakeLighth"
|
|||||||
|
|
||||||
fixed4 frag (v2f i) : SV_Target
|
fixed4 frag (v2f i) : SV_Target
|
||||||
{
|
{
|
||||||
return _Color * (1.0 - Unity_PolarCoordinates_float(i.uv, 0.5, 1, 1).x);
|
return _Color * (1.0 - Unity_PolarCoordinates_float(i.uv, float2(0.5, 0.5), 1, 1).r);
|
||||||
}
|
}
|
||||||
ENDCG
|
ENDCG
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user