8

1538 Chapter 16: Material Editor, Materials, and Maps
Inter face
The button to the right of each main shader
button is for shaders that can return multiple
parameters. If a shader that retur ns multiple
parameters is assigned to the component, the
button’s tooltip shows the p arameter name.
Clicking the button displays a
Connect Parameter
To Shader dialog (page 2–1523)
,whichletsyou
change which parameter is being used.
Impor tant:
UV Coordinates (page 2–1538)
and
XYZ
Coordinates (page 2–1541)
are the only shaders with
multiple return values provided with 3ds Max. You might
encounter multiple return values in shaders provided
with other shader libraries or custom shader code.
UV Coor dinate S hader (mental
ray)
Material Editor > Any shader with a Coords parameter
or ot her vector value. > Click the shader button. >
Material/Map Browser > UV Coordinate (3dsmax)
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.
This shader is identical to the
UV Generator
shader (p age 2–1534)
,exceptthatitreturnstwo
values instead of one.
The UV coordinate (same value as UV
Generator would return)
This value is named UV.
The UV coordinate’s derivative
This value, also a vector, is named dUV.
When you choose this shader, a
Connect
Parameter To Shader dialog (page 2–1523)
is
displayed, prompting you to choose which of the
two values to use. You can later change the choice
of value by using the “dot button to the right of
the main shader button.
Interfa ce
TheUVCoordinateshaderhasthesame
parameters as the UV Generator shader. See
UV
Generator Parameters Rollout (page 2–1535)
for a
description of the basic sett i ngs.