The V-Ray OSL TexOSL map can be used to load Open Shading Language OSL shader code files (.osl) or OSL object code files (.oso) and render them directly with V-Ray. It can be used with shaders that have simple color and float output parameters. These parameters are considered respectively as texture RGB and alpha outputs.
If the shader file describes a material (rather than a texture) and writes its result in an output closure color parameter, it is advised to use the V-Ray OSL Material. Otherwise, the texture map will not evaluate the materials and would will be rendered black.
OSL Source – Source –Determines how the OSL code is drawn.
Inline OSL File path (.oso/.osl)
OSL Code – –A space for manual insertion of an OSL code.
Path to .oso/.osl file – file –Specifies the .osl or .oso file which contains the shader (object) code.
Column
width
5%
Column
width
45%
Image Modified
Color & Alpha Tweaks
...
Notes
...
Fancy Bullets
type
circle
The VRayTexOSL texture The V-Ray TexOSL texture automatically compiles OSL shaders to object code (OSO format) upon shader selection. No following compilations occur (even at render events). If the loaded OSL shader is modified click the Recreate attributes button for your changes to take effect.
An OSL compiler that translates *.osl files to *.oso files can be found in the tools subdirectory of V-Ray's root installation folder.
...
Fancy Bullets
type
circle
OSL home page at SPI - Open Shading Language home page at Sony Pictures Imageworks