Warning: I don't know much about shaders, so please bear with me.
I was trying to go through the default Unity shader, and encountered the following code:
struct Input
{
float2 uv_MainTex;
};
From a different tutorial I gathered that this is the uv coordinate of the texture MainTex, and it is this way because it's called uv_MainTex (so calling it something else wouldn't work). I would like to know the full list of special naming conventions that are supported in Unity (or is this an HLSL thing).
Is there a resource that has a reference to all of these naming conventions? (Also, I'm not sure if this has a special name, if it does I'd also like to know that, might have helped searching for this)
↧