cvr-props/Assets/test/uninit.shader

46 lines
850 B
Text
Raw Normal View History

2023-06-17 21:13:48 +02:00
Shader "CrispyPin/uninit"
{
Properties
{
}
SubShader
{
Tags { "RenderType"="Transparent" }
LOD 100
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
struct appdata
{
float4 vertex : POSITION;
};
struct v2f
{
float4 vertex : SV_POSITION;
};
v2f vert (appdata v)
{
v2f o;
o.vertex = UnityObjectToClipPos(v.vertex);
return o;
}
fixed4 frag (v2f i) : SV_Target
{
fixed4 col;
col.a = 0.5f;
return col;
}
ENDCG
}
}
}