Initial Commit

This commit is contained in:
Simeon Radivoev 2022-02-12 12:53:50 +02:00
commit ee5c2f922d
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A
2255 changed files with 547750 additions and 0 deletions

View file

@ -0,0 +1,55 @@
/*
That shader is used after all light obstacles have been drawn to draw one pixel wide white corner over it.
*/
Shader "Light2D/Obstacle Texture Post Porcessor" {
SubShader {
Tags {"Queue"="Overlay" "IgnoreProjector"="True" "RenderType"="Transparent"}
LOD 100
ZWrite Off
Blend Off
ZTest Always
Cull Off
Pass {
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
struct appdata_t {
float4 vertex : POSITION;
fixed4 color : COLOR;
};
struct v2f {
float4 vertex : SV_POSITION;
fixed4 color : COLOR;
};
uniform sampler2D _MainTex;
v2f vert (appdata_t v)
{
v2f o;
o.vertex = v.vertex;
o.color = v.color;
return o;
}
half4 frag (v2f i) : COLOR
{
clip(i.color.a - 0.01);
return i.color;
}
ENDCG
}
}
}