To use custom-made mental ray for Maya shaders in Maya
See Write a shader declaration file.
mental ray user data is now supported in Maya. Declared (with parameters), and Literal (raw bytes) data are translated as two separate nodes in Maya. This applies only to mental ray for Maya custom shader nodes.
For more information on shader libraries, see mental ray for Maya custom shaders.
mental ray for Maya uses the default substitution rule .so > .dylib for the Mac OS X platform. Old shader libraries with a.so extension must be renamed. The consistent .so/.dll/.dylib substitution rules provide .mi scenes with cross-platform compatibility.
See Load shaders.