These shaders extend our previous shaders featuring an Unlit Color and add a single texture. I have also removed much of the comments from the previous shader. Going forward, as i extend previous versions of shaders I will be removing old comments and adding new ones to explain new elements. Hopefully this will make it easy to follow along.
*UPDATE* I added a demonstration of Scaling/Offsetting UVs via the texture parameter values in both Maya and Unity. These aren't used all that frequently but I figured i should include them for completeness :)
Unity's controls tie directly into the Tile / Offset Parameters of the texture. Maya's controls had to be implemented through a custom parameter in the shader. I'm sure there is some way to access the Repeat UV / Translate Frame parameters in Maya but I don't know how. Sorry :(
Unity's controls tie directly into the Tile / Offset Parameters of the texture. Maya's controls had to be implemented through a custom parameter in the shader. I'm sure there is some way to access the Repeat UV / Translate Frame parameters in Maya but I don't know how. Sorry :(
Maya CGFX File:
unlittexture.cgfx |
Unity SHADER File:
unlittexture.shader |