mirror of
https://github.com/DCFApixels/Unity-DebugX.git
synced 2025-09-17 17:34:35 +08:00
update sample
This commit is contained in:
parent
6a11d981d4
commit
624379c950
@ -128,7 +128,7 @@ Material:
|
|||||||
- _EmissionEnabled: 0
|
- _EmissionEnabled: 0
|
||||||
- _EnableExternalAlpha: 0
|
- _EnableExternalAlpha: 0
|
||||||
- _EnvironmentReflections: 1
|
- _EnvironmentReflections: 1
|
||||||
- _Factor: 1
|
- _Factor: -10
|
||||||
- _FlipbookMode: 0
|
- _FlipbookMode: 0
|
||||||
- _GlossMapScale: 1
|
- _GlossMapScale: 1
|
||||||
- _Glossiness: 0
|
- _Glossiness: 0
|
||||||
@ -138,6 +138,7 @@ Material:
|
|||||||
- _Metallic: 0
|
- _Metallic: 0
|
||||||
- _Mode: 0
|
- _Mode: 0
|
||||||
- _OcclusionStrength: 1
|
- _OcclusionStrength: 1
|
||||||
|
- _Offset: -0.56
|
||||||
- _Parallax: 0.02
|
- _Parallax: 0.02
|
||||||
- _QueueOffset: 0
|
- _QueueOffset: 0
|
||||||
- _ReceiveShadows: 0
|
- _ReceiveShadows: 0
|
||||||
@ -166,6 +167,6 @@ Material:
|
|||||||
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
|
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
|
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
|
||||||
- _SpecColor: {r: 0.19999993, g: 0.19999993, b: 0.19999993, a: 0}
|
- _SpecColor: {r: 0.19999993, g: 0.19999993, b: 0.19999993, a: 0}
|
||||||
- _TopColor: {r: 0.03466536, g: 0.09027303, b: 0.1792453, a: 1}
|
- _TopColor: {r: 0, g: 0.25344214, b: 0.6698113, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
m_AllowLocking: 1
|
m_AllowLocking: 1
|
||||||
|
@ -5,6 +5,7 @@ Shader "DCFApixels/DebugX/Samples/Skybox"
|
|||||||
_TopColor ("Top Color", Color) = (1,1,1,1)
|
_TopColor ("Top Color", Color) = (1,1,1,1)
|
||||||
_ButtomColor ("Buttom Color", Color) = (1,1,1,1)
|
_ButtomColor ("Buttom Color", Color) = (1,1,1,1)
|
||||||
_Factor ("Factor", Float) = 1
|
_Factor ("Factor", Float) = 1
|
||||||
|
_Offset ("Offset", Float) = 1
|
||||||
}
|
}
|
||||||
SubShader
|
SubShader
|
||||||
{
|
{
|
||||||
@ -34,6 +35,7 @@ Shader "DCFApixels/DebugX/Samples/Skybox"
|
|||||||
float4 _TopColor;
|
float4 _TopColor;
|
||||||
float4 _ButtomColor;
|
float4 _ButtomColor;
|
||||||
float _Factor;
|
float _Factor;
|
||||||
|
float _Offset;
|
||||||
|
|
||||||
v2f vert (appdata v)
|
v2f vert (appdata v)
|
||||||
{
|
{
|
||||||
@ -45,7 +47,7 @@ Shader "DCFApixels/DebugX/Samples/Skybox"
|
|||||||
|
|
||||||
fixed4 frag (v2f i) : SV_Target
|
fixed4 frag (v2f i) : SV_Target
|
||||||
{
|
{
|
||||||
fixed4 color = lerp(_ButtomColor, _TopColor, clamp(i.uv.y / _Factor + 0.5, 0, 1));
|
fixed4 color = lerp(_ButtomColor, _TopColor, clamp(i.uv.y / _Factor + 0.5 + _Offset, 0, 1));
|
||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
ENDCG
|
ENDCG
|
||||||
|
Loading…
Reference in New Issue
Block a user