blender/intern/cycles/app
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
..
CMakeLists.txt Cycles_server also needs to link to libdl on linux 2014-02-03 20:19:15 +01:00
cycles_server.cpp Cycles: network render code updated for latest changes and improved 2013-12-07 12:26:58 +01:00
cycles_standalone.cpp Cycles Standalone: Add more controls and options 2014-02-14 21:40:51 +01:00
cycles_xml.cpp Support for generic OSL shader parameters in the Cycles standalone XML 2014-02-24 11:35:32 +01:00
cycles_xml.h Cycles: relicense GNU GPL source code to Apache version 2.0. 2013-08-18 14:16:15 +00:00
io_export_cycles_xml.py Fix T37827: cycles XML mesh export utility not longer worked. 2013-12-16 11:08:41 +01:00