How can I add variables that aren’t linked to mnemonics? And is there a usable list of mnemonics anywhere?
As I understand it, the ‘Vert’ part of my shader is only run once per vertex, and the ‘fragment’ section of the shader is run for every pixel (in other words, it’s the pixel shader). That being the case, how do I calculate the current UV on a texture whilst running the fragment section of the shader? At the moment, I can only really find this information for the vertex section…
with dx9 you’ve generally got TEXCOORD0 to TEXCOORD7 ( so 8 float4’s )
However, if your dealing with surface shaders, it depends on lighting and what your doing in the surface function, unity uses up a good amount.
anything in the structure or uniform parameters bound to a semantics that comes off the vertex shader is interpolated per pixel in the fragment shader.