Tipmental 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.
Insert the shader into a shader library
(.dll on Windows; .so on
Linux and Mac OS X).
Maya2010/mentalray/lib contains
shader libraries that are compiled and loaded into Maya by default.
Compiling and linking a shader on Windows
requires including shader.h and linking
to shader.lib. These
two files are shipped with Maya, and can be found at Maya2010/devkit/mentalray.