Add shaders

This commit is contained in:
Williams
2026-05-19 15:33:18 +02:00
committed by Lucien
parent 593c2e75b2
commit cd9df45d08
1358 changed files with 2429155 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
Shader "Beautify/CopyDepth" {
Properties{
_MainTex("", 2D) = "white" {}
}
SubShader{
Tags{ "RenderType" = "Transparent" }
Pass{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
struct v2f {
float4 pos : SV_POSITION;
float depth01 : TEXCOORD0;
};
v2f vert(appdata_base v) {
v2f o;
o.pos = UnityObjectToClipPos(v.vertex);
o.depth01 = COMPUTE_DEPTH_01;
return o;
}
float4 frag(v2f i) : SV_Target{
return EncodeFloatRGBA(i.depth01);
}
ENDCG
}
}
}