8

CustomShadersfor3dsMax 1521
Custom Shaders for 3ds Max (page 2–1521)
links to descriptions of the shaders provided in
the product-specific library,
3dsmax.mi
.
mental images Shader Libraries (page 2–1522)
linkstodescriptionsoftheshadersprovided
in the three standard mental ray libraries from
mental images:
base.mi, contour.mi,
and
physics.mi
.
ShadersintheLumeToolsCollection(page
2–1523)
links to descriptions of shaders in the
lume library ,
lume.mi
.
Note: When y ou wire the parameters of an object
whose material has mental ray shaders assigned,
names of shader parameters might differ from
those in the Material Editor interface. Also,
parameters not supported by 3ds Max might
appear as blanks in the wiring menu.
mental ray Shader s not Provided with
3ds M ax
If your installation includes shader libraries
other than those listed in this reference (whether
obtained from a third-party source, or custom
written), then the Browser mi ght list those shaders
as well. Documentation for third-party or custom
shaders should come from the shader’s provider.
WhereShadersAreInstalled
Shaders provided with 3ds Max are installed in
the subdirectory
\mentalray\shaders_standard\,
below the 3ds Max root directory. The
\include
folder is for the MI include files, and the
\shaders
folder is for the DLLs.
Third-party shaders should
not
be installed in
\shaders_standard
. They should be installed either
in
\shaders_3rdpart y
or
\shaders_autoload
.Ifa
3rd-party shader is present in
\shaders_autoload,
it is loaded au tomatically when you start
3ds Max. If a 3rd-party shader is present in
\shaders_3rdparty,
you must update the file
3rdp arty.mi
so it explicitly loads the shader. The
MI file
\shaders_3rdpart y\3rdpart y.mi
contains
comments that explain how to add load statements.
Note: Shaders listed in the MI file are loaded in
reverse order: that is, from the bottom of the list
to the top.
Cust om Sh ader s for 3 ds Ma x
Material Editor > Maps rollout > Click a Map button. >
Material/Map Browser > Pick a mental ray shader other
than a mental images library shader or a lume shader.
Note: Shaders do not appear in the Browser unless you
have enabled the mental ray ex tensions by using the
mental ray Preferences panel. In addition, shaders don’t
appear unless the mental ray renderer is the currently
active renderer.
For use with the
mental ray renderer (page 3–77)
,
3ds Max provides a number of c ustom shaders.
Thesearethefollowing:
3D Displacement Shader (mental ray) (page
2–1524)
Bump Shader (mental ray) (page 2–1526)
DG S Material Shader (mental ray) (page 2–1527)
Dielectric Material Shader (mental ray) (page
2–1529)
Environment Shader (mental ray) (page 2–1531)
Heig ht Map Displacement Shader (mental ray)
(page 2–1532)
Material to Shader (mental ray) (page 2–1533)
Shader List (mental ray) (page 2–1533)
UV Generator Shader (mental ray) (page 2–1534)
UV Coordinate Shader (mental ray) (page 2–1538)
XYZ Generator Shader (mental ray) (page 2–1539)
XYZ Coordinate Shader (mental ray) (page
2–1541)