Quantcast
Channel: Questions in topic: "hlsl"
Viewing all articles
Browse latest Browse all 206

Is there a list of Shader input struct naming conventions?

$
0
0
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)

Viewing all articles
Browse latest Browse all 206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>