Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Multiexcerpt include
MultiExcerptNamesynopsis
nopaneltrue
PageWithExcerptA5AFMUG:OSL
 


Center

Image Added

Multiexcerpt
hiddentrue
MultiExcerptNamemultiple_outputs
Center
Image Removed

Image Added

OSL shader using multiple shader outputs

Code

Multiexcerpt include
MultiExcerptNamecode
nopaneltrue
PageWithExcerptA5AFMUG:OSL
 This is just a simple text edit field for quick editing. Open the dedicated OSL Editor for dedicated script editing features.

...

When the code compiles, the input parameters are displayed on the Parameters tab and shaders can be linked to them in the network editor.

Center

 


OSL Editor

Center

...


The OSL Editor offers a user-friendly interface to edit OSL scripts. It lists all OSL shaders available in the scene and displays the code of the selected shader. The code is automatically compiled when the editor loses its focus. The result of the compilation is displayed in the console window under the text editor. In case of errors, the error message and line number (where the error happened) are listed. 

...