Search Unity

where can I find the reference of "appdata_img"

Discussion in 'Scripting' started by JohnSonLi, Oct 5, 2012.

  1. JohnSonLi

    JohnSonLi

    Joined:
    Apr 15, 2012
    Posts:
    586
    I am new to shader programming....I dont know all variables of struct appdata_img......could anyone help me out of this trouble.
     
  2. CrazySi

    CrazySi

    Joined:
    Jun 23, 2011
    Posts:
    538
    Let me know if you ever find the answer to this.
     
  3. JohnSonLi

    JohnSonLi

    Joined:
    Apr 15, 2012
    Posts:
    586
    find the file "unitycg.cginc",and open it with word.
     
  4. robbbbbb

    robbbbbb

    Joined:
    Dec 3, 2012
    Posts:
    1
    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