SI_MI_SHADER_TOKEN

Parameter
Description
SI_ MI_SHADER_TOKEN

In a mental ray 2.1 .mi file, this parameter allows you to use the registry capability to specify the shader link path (the path of the shader's .so and .dll files). When set, SOFTIMAGE|XSI outputs the shader database token instead of the exact path. mental ray will replace the shader database token with the value specified in the rayrc file. A shader database token is always the name of the database in upper case, within braces (for example, the Shader_Lib token would be {SHADER_LIB}).
SI_MI_SHADER_TOKEN is useful for distributed rendering. As each rendering machine uses its own rayrc definition to replace the token, SOFTIMAGE|XSI can be installed at different locations on each machine and the shader .so and .dll files will always be found locally on each rendering machine.
Example: Linking without SI_SHADER_TOKEN



Syntax

c:\Softimage\XSI_1.0\mental_ray\MR_SHADERS\Shader_Lib\oz.so


Example: Linking with SI_SHADER_TOKEN



Syntax

{SHADER_LIB}/mental_ray/MR_SHADERS/Shader_Lib/oz.so