Hmmm its a bit difficult to follow for me, and its not very efficient (lots of matrix calculations in the pixel shader), but since it is for Maya and not real-time use I guess its fine. Congrats, though, you are the first person I've seen successfully write a Maya Real-Time shader. CG is similar enough to HLSL, with minor…