it's a great tool to try out snippets but often you have to transform coordinates differently or change the order of normal vector components. it could indeed be automated... that would be great. i's also annoying that in 3dgs stuff like : WorldViewProj is just called matWorldViewProj. hlsl supports many more matrices than the predefined 3dgs ones.