9
1728 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 returns multiple
parameters is assigned to the component, the
button’s tooltip shows the parameter name.
Clicking the button displays a Connect Par ameter
To Shader dialog (page 2–1713),whichletsyou
change which parameter is b eing used.
Impor tant: UV Coordinates (page 2–1728) and XYZ
Coordinates (page 2–1730) 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 Coordinate S hader (mental
ray)
Material Editor > Any shader with a Coords parameter
or other vector value. > Click the shader bu tton. >
Material/Map Browser > UV Coordinate (3dsma x)
Note: Shaders appear in the Browser only if the mental
ray renderer is the currently active renderer.
This shader is identical to the UV Generator shader
(page 2–1724),exceptthatitreturnstwovalues
instead of one.
• The UV coordinate (same value as UV
Generator would return)
This value is named UV.
• The UV coordinate’s derivative
This va lue, als o a vector, is named dU V.
When you cho ose this shader, a Connect Parameter
To Shader dialog (page 2–1713) 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 t he main
shader button.
Interfa ce
TheUVCoordinateshaderhasthesame
parameters as the UV Generator shader. See UV
Generator Parameters Rollout (page 2–1725) for a
description of the basic settings.