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
f440dfcb20
commit
6a11d981d4
@ -1,4 +1,4 @@
|
|||||||
Shader "Unlit/FakeLighth"
|
Shader "DCFApixels/DebugX/Samples/FakeLighth"
|
||||||
{
|
{
|
||||||
Properties
|
Properties
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Shader "Custom/FakeLitShader"
|
Shader "DCFApixels/DebugX/Samples/FakeLitShader"
|
||||||
{
|
{
|
||||||
Properties
|
Properties
|
||||||
{
|
{
|
||||||
|
@ -21,7 +21,7 @@ Material:
|
|||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_Name: Skybox
|
m_Name: Skybox
|
||||||
m_Shader: {fileID: 10755, guid: 0000000000000000f000000000000000, type: 0}
|
m_Shader: {fileID: 4800000, guid: 2e981515bbfd59549a1c8fce06a0e033, type: 3}
|
||||||
m_Parent: {fileID: 0}
|
m_Parent: {fileID: 0}
|
||||||
m_ModifiedSerializedProperties: 0
|
m_ModifiedSerializedProperties: 0
|
||||||
m_ValidKeywords: []
|
m_ValidKeywords: []
|
||||||
@ -128,6 +128,7 @@ Material:
|
|||||||
- _EmissionEnabled: 0
|
- _EmissionEnabled: 0
|
||||||
- _EnableExternalAlpha: 0
|
- _EnableExternalAlpha: 0
|
||||||
- _EnvironmentReflections: 1
|
- _EnvironmentReflections: 1
|
||||||
|
- _Factor: 1
|
||||||
- _FlipbookMode: 0
|
- _FlipbookMode: 0
|
||||||
- _GlossMapScale: 1
|
- _GlossMapScale: 1
|
||||||
- _Glossiness: 0
|
- _Glossiness: 0
|
||||||
@ -157,6 +158,7 @@ Material:
|
|||||||
- _ZWrite: 1
|
- _ZWrite: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _BaseColor: {r: 0.29222006, g: 0.20719118, b: 0.4528302, a: 1}
|
- _BaseColor: {r: 0.29222006, g: 0.20719118, b: 0.4528302, a: 1}
|
||||||
|
- _ButtomColor: {r: 0.0427198, g: 0.025097892, b: 0.11320752, a: 1}
|
||||||
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
|
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
|
||||||
- _Color: {r: 0.0327363, g: 0.031372547, b: 0.13333334, a: 1}
|
- _Color: {r: 0.0327363, g: 0.031372547, b: 0.13333334, a: 1}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
@ -164,5 +166,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}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
m_AllowLocking: 1
|
m_AllowLocking: 1
|
||||||
|
54
Samples/Other/Skybox.shader
Normal file
54
Samples/Other/Skybox.shader
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
Shader "DCFApixels/DebugX/Samples/Skybox"
|
||||||
|
{
|
||||||
|
Properties
|
||||||
|
{
|
||||||
|
_TopColor ("Top Color", Color) = (1,1,1,1)
|
||||||
|
_ButtomColor ("Buttom Color", Color) = (1,1,1,1)
|
||||||
|
_Factor ("Factor", Float) = 1
|
||||||
|
}
|
||||||
|
SubShader
|
||||||
|
{
|
||||||
|
Tags { "RenderType"="Opaque" }
|
||||||
|
LOD 100
|
||||||
|
|
||||||
|
Pass
|
||||||
|
{
|
||||||
|
CGPROGRAM
|
||||||
|
#pragma vertex vert
|
||||||
|
#pragma fragment frag
|
||||||
|
|
||||||
|
#include "UnityCG.cginc"
|
||||||
|
|
||||||
|
struct appdata
|
||||||
|
{
|
||||||
|
float4 vertex : POSITION;
|
||||||
|
float2 uv : TEXCOORD0;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct v2f
|
||||||
|
{
|
||||||
|
float2 uv : TEXCOORD0;
|
||||||
|
float4 vertex : SV_POSITION;
|
||||||
|
};
|
||||||
|
|
||||||
|
float4 _TopColor;
|
||||||
|
float4 _ButtomColor;
|
||||||
|
float _Factor;
|
||||||
|
|
||||||
|
v2f vert (appdata v)
|
||||||
|
{
|
||||||
|
v2f o;
|
||||||
|
o.vertex = UnityObjectToClipPos(v.vertex);
|
||||||
|
o.uv = v.uv;
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
|
||||||
|
fixed4 frag (v2f i) : SV_Target
|
||||||
|
{
|
||||||
|
fixed4 color = lerp(_ButtomColor, _TopColor, clamp(i.uv.y / _Factor + 0.5, 0, 1));
|
||||||
|
return color;
|
||||||
|
}
|
||||||
|
ENDCG
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
9
Samples/Other/Skybox.shader.meta
Normal file
9
Samples/Other/Skybox.shader.meta
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2e981515bbfd59549a1c8fce06a0e033
|
||||||
|
ShaderImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
defaultTextures: []
|
||||||
|
nonModifiableTextures: []
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user