VRayOSLOutputSelector
This page provides information on the OSL Output Selector Map.
Overview
The VRayOSLOutputSelectorTex serves as a tool to select an output of a given VRayOSLTex. That way one VRayOSLTex can be used to supply multiple outputs at the same time.
UI Path
||Material Editor window|| > Material/Map Browser > Maps > V-Ray > VRayOSLOutputSelectorTex
Parameters
Input Texmap -- The VRayOSLTex input texmap. (Only VRayOSLTex should be used as an input.)
Output Index – The index of the output that is selected(zero based). This parameter is linked to the Output Name parameter.
Output Name – The name of the output that is selected. Change the output by choosing a different one from the drop-down list. This parameter is linked to the Output Index Index parameter.
Example
shader
MultipleOutputsExample
(
output color Red = color (
1.0
,
0.0
,
0.0
),
output color Green = color (
0.0
,
1.0
,
0.0
),
output color Blue = color (
0.0
,
0.0
,
1.0
),
output color White = color (
1.0
,
1.0
,
1.0
),
output color Black = color (
0.0
,
0.0
,
0.0
)
)
{
/*Empty. Does nothing.*/
}