ArabDesert/Assets/harry_t/ht8b_shaders/quest_other_unlit.shader

52 lines
1.1 KiB
Plaintext

Shader "harry_t/other_unlit"
{
Properties
{
_OtherUnlitTex ("Texture", 2D) = "white" {}
}
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;
};
sampler2D _OtherUnlitTex;
v2f vert (appdata v)
{
v2f o;
o.vertex = UnityObjectToClipPos(v.vertex);
o.uv = v.uv;
return o;
}
fixed4 frag (v2f i) : SV_Target
{
// sample the texture
fixed4 col = tex2D(_OtherUnlitTex, i.uv);
return col;
}
ENDCG
}
}
}