When an HLSL effect does not display correctly in Maya, follow these steps:
If compilation errors have occurred, this text box includes the error and shader line number that needs to be fixed. In addition, the newer Direct X HLSL compilers may drop support for older vertex and fragment profiles, requiring you to post the shader to a more recent profile.