Go to file
Lukas Tönne d59f53f7b7 Support for generic OSL shader parameters in the Cycles standalone XML
reader.

To make a generic OSL shader connectable to other nodes, the parameters
must be declared via "input" and "output" child elements:

  <osl_shader name="tex" src="./osl/stripes.osl">
    <input name="Stripes" type="int" />
    <output name="ColorOut" type="color" />
  </osl_shader>

`name` must be the same as the OSL shader parameter name.
`type` must be one of float, int, color, vector, point, normal, closure,
       string (matching cycles socket types)

Beyond this the OSL script nodes then work just like all other nodes.

OSL parameter sockets can be connected to other cycles nodes:

  <connect from="checker color" to="tex Stripes" />
  <connect from="tex ColorOut" to="floor_closure color" />

They can set default values for the input sockets by attributes of the
main node element:

  <osl_shader name="tex" src="./osl/stripes.osl" Stripes="3" >
    <input name="Stripes" type="int" />
    <output name="ColorOut" type="color" />
  </osl_shader>

This system of specifying custom attributes should probably be changed,
since it can easily create name conflicts and arbitrarily long elements.
But that is a different issue to be solved for all nodes in general.
2014-02-24 11:35:32 +01:00
build_files OSX/scons: Fix language menu not showing up in prefs: 2014-02-23 23:17:30 +01:00
doc Docs: update man page script based on D251 2014-02-20 20:11:03 +11:00
extern Fix T38684: cmake OS X build problem when changing deployment target. 2014-02-18 19:38:43 +01:00
intern Support for generic OSL shader parameters in the Cycles standalone XML 2014-02-24 11:35:32 +01:00
release Minor UI messages fixes. 2014-02-22 13:49:40 +01:00
scons@2d6ebcb239 Squashed commit of the following: 2013-11-21 16:51:29 +01:00
source Fix T38800: Setting UV projector caused zero user objects 2014-02-24 21:36:16 +11:00
.arcconfig Use HTTPS protocol for arc 2013-12-24 22:57:27 +06:00
.gitignore .gitignore: Adding CMakeLists.txt.user for QtCreator users. 2014-01-26 17:52:14 -08:00
.gitmodules Initialize git submodules for addons, locales and scons 2013-11-15 12:19:08 +06:00
CMakeLists.txt OSX/Cmake: tentative handling for clang-omp, 2014-02-19 21:44:53 +01:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile Cycles: Add a cmake config to easily compile Cycles Standalone. 2014-01-20 20:44:39 +01:00
SConstruct Splash screen: use a retina resolution image for Mac OS X. 2014-02-18 19:38:44 +01:00