UnityCG.cginc常用的结构体

a1a9e5.png


struct appdata_full 
{    
    float4 vertex : POSITION;    
    float4 tangent : TANGENT;    
    float3 normal : NORMAL;    
    float4 texcoord : TEXCOORD0;
    float4 texcoord1 : TEXCOORD1;    
    float4 texcoord2 : TEXCOORD2;    
    float4 texcoord3 : TEXCOORD3;
        #if defined(SHADER_API_XBOX360)    
        half4 texcoord4 : TEXCOORD4;    
        half4 texcoord5 : TEXCOORD5;
        #endif    
    fixed4 color : COLOR;
};

首页 我的博客
粤ICP备17103704号