I cam currently trying to convert a GLSL shader into a CG shader for Unity. I am an absolute beginner regarding shaders, so please bear with me.
While doing so, I encountered the following in the GLSL shader:
oBentNormal = gl_MultiTexCoord7;
From my understanding, gl_MultiTexCoord7
is a Color of a Multi-Texture at a specific Coordinate. Or something? Not really sure.
My question is, is there an equivalent for CG? How can I access those Multi-Texture Coordinates in CG with Unity? The Semantics in the Unity Documentation only speak of TextureCoord, and they only go from 0 to 3. (i.e. TEXCOORD0
, TEXCOORD1
, TEXCOORD2
, TEXCOORD3
)