mirror of
https://github.com/DCFApixels/Unity-DebugX.git
synced 2025-09-17 17:34:35 +08:00
Compare commits
2 Commits
f440dfcb20
...
624379c950
Author | SHA1 | Date | |
---|---|---|---|
![]() |
624379c950 | ||
![]() |
6a11d981d4 |
@ -1,4 +1,4 @@
|
||||
Shader "Unlit/FakeLighth"
|
||||
Shader "DCFApixels/DebugX/Samples/FakeLighth"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
Shader "Custom/FakeLitShader"
|
||||
Shader "DCFApixels/DebugX/Samples/FakeLitShader"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
|
@ -21,7 +21,7 @@ Material:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Skybox
|
||||
m_Shader: {fileID: 10755, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Shader: {fileID: 4800000, guid: 2e981515bbfd59549a1c8fce06a0e033, type: 3}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
@ -128,6 +128,7 @@ Material:
|
||||
- _EmissionEnabled: 0
|
||||
- _EnableExternalAlpha: 0
|
||||
- _EnvironmentReflections: 1
|
||||
- _Factor: -10
|
||||
- _FlipbookMode: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0
|
||||
@ -137,6 +138,7 @@ Material:
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Offset: -0.56
|
||||
- _Parallax: 0.02
|
||||
- _QueueOffset: 0
|
||||
- _ReceiveShadows: 0
|
||||
@ -157,6 +159,7 @@ Material:
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _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}
|
||||
- _Color: {r: 0.0327363, g: 0.031372547, b: 0.13333334, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
@ -164,5 +167,6 @@ Material:
|
||||
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
|
||||
- _SpecColor: {r: 0.19999993, g: 0.19999993, b: 0.19999993, a: 0}
|
||||
- _TopColor: {r: 0, g: 0.25344214, b: 0.6698113, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
m_AllowLocking: 1
|
||||
|
56
Samples/Other/Skybox.shader
Normal file
56
Samples/Other/Skybox.shader
Normal file
@ -0,0 +1,56 @@
|
||||
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
|
||||
_Offset ("Offset", 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;
|
||||
float _Offset;
|
||||
|
||||
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 + _Offset, 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