chore: sync workspace state
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
Shader "Custom/ObjectSelectEncode"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_ID("ID", Color) = (0,0,0,1)
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Tags {"RenderType"="Opaque"} // ±ê¼ÇΪ²»Í¸Ã÷
|
||||
LOD 100 // ϸ½Ú¼¶±ð
|
||||
|
||||
Pass
|
||||
{
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
struct appdata
|
||||
{
|
||||
float4 vertex : POSITION;
|
||||
};
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float4 vertex : SV_POSITION;
|
||||
};
|
||||
|
||||
fixed4 _ID;
|
||||
|
||||
v2f vert (appdata v)
|
||||
{
|
||||
v2f o;
|
||||
o.vertex = UnityObjectToClipPos(v.vertex);
|
||||
return o;
|
||||
}
|
||||
|
||||
fixed4 frag (v2f i) : SV_Target
|
||||
{
|
||||
return _ID;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
FallBack "Diffuse"
|
||||
}
|
||||
Reference in New Issue
Block a user