The General rollout holds parameters that control common shader characteristics.
Shader file – Specifies the .osl or .oso file which contains the shader (object) code. This button control also supports a context menu with the following options:
Clear – Unloads the current shader and restores the plug-in as if no shaders have been loaded. Reset – Reloads the shader and resets its parameters to the default values. Reload – Reloads the shader but keeps the current parameter values. Open Containing Folder – Reveals the shader location in Explorer. Open in External Editor – Opens the shader in an appropriate text editor. Open in Quick Shader –Opens the loaded file's code in the text editor of the Quick Shader. Copy File Path – Puts the full path of the currently loaded file in the clipboard. Copy Folder Path – Copies the parent directory of the currently loaded file into the clipboard. Recent Files – Holds a list of the recently loaded shaders and an option to clear the list.
Expand
title
Click here to see the shortcut keys for the context menu options
Shortcut Key
Command
C
Clear
R
Reset
E
Reload
O
Open Containing Folder
X
Open in External Editor
Q
Open in Quick Shader
F
Copy File Path
P
Copy Folder Path
T
Recent Files
1-0
The first 10 items of the Recent Files submenu have assigned shortcuts from 1 to 0
If you edit your OSL shader, the new version would be loaded only after a Clear, Reset, or a Reload option has been selected.
Closure output – Specifies the closure color source for the materials's output. The built-in output closure color parameter Ci is selected by default.
Max ray depth – Specifies the maximum reflection/refraction depth for the shader.
Show preview – Determines whether to render a shader preview in the 3ds Max Material Editor.
Clamp shader result – Determines whether to force the result into the [0, clamping limit] range.
Clamping limit – Specifies the upper clamp limit if clamp shader result is enabled.
Viewport color – Specifies the diffuse component of the material used in viewport shading.
Wrap texture coordinates – Automatically wraps the texture coordinates for the OSL shader, passing only values in the [0.0, 1.0] range.
Flip textures – Flips all attached textures vertically for compatibility with 3ds Max OSL Map.
Use uvgen – Uses the information from the UV Generator of the VRayOSLMtl. When disabled, uses information from the UV Generator of textures used or the OSL node.
Export shader name to OSO – Saves the shader as *.oso file.
– Help button which opens a URL provided by the shader.
Column
width
5%
Column
width
35%
...
Section
Column
width
60%
System Paths – Shows the System Paths defined with the V-Ray Environment environment variableVRAY_OSL_PATH_3DSMAX####_x64. This path automatically points to the V-Ray opensl folder and can be changed only from your account's Environment Variables.
Additional Paths –Search paths list that is used when an osl module is not found in the available System Paths. You can Add or Remove additional paths directly from the UI by pressing the corresponding button.