Shader "Custom/Cg basic shader"
{
SubShader
{
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
float4 vert(float4 vertexPos:POSITION):SV_POSITION
{
return mul(UNITY_MATRIX_MVP,vertexPos);
}
float4 frag(void):COLOR
{
return float4(1.0,0.0,0.0,1.0);
}
ENDCG
}
}
}
Cg basic shader
最新推荐文章于 2021-12-02 18:31:39 发布