where can I find the reference of "appdata_img"

I am new to shader programming…I dont know all variables of struct appdata_img…could anyone help me out of this trouble.

Let me know if you ever find the answer to this.

find the file “unitycg.cginc”,and open it with word.

It’s this:

It’s a minimal vertex input format intended mainly for image processing.

In Unity 4 on the mac at least that file’s in /Applications/Unity/Unity.app/Contents/CGIncludes/UnityCG.cginc

3 Likes