Shader "Unlit/002"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
}
SubShader
{
Tags { "RenderType"="Opaque" }
LOD 100
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
//POSITION SV_POSITION 语义
float4 vert(float4 v:POSITION):SV_POSITION
{
return UnityObjectToClipPos(v);
}
fixed4 frag():SV_TARGET
{
return fixed4(1,1,1,1);
}
ENDCG
}
}
}
UnityShader---最简单的Shader(内置渲染管线)---2
最新推荐文章于 2024-06-23 13:25:54 发布