blender/intern
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
..
atomic Attempt to fix compilation error on Debian armel kernel 2013-12-12 17:33:36 +06:00
audaspace audaspace: use new libavcodec audio encoding API where available 2014-01-28 14:25:40 +06:00
container Rework carve integration into boolean modifier 2014-02-13 17:16:53 +06:00
cycles Support for generic OSL shader parameters in the Cycles standalone XML 2014-02-24 11:35:32 +01:00
dualcon quiet double-promotion warnings, change octree.cpp to use a float (vector accumulated into a float anyway) 2013-08-06 06:38:52 +00:00
elbeem Building elbeem without openmp failed 2014-02-06 02:26:48 +11:00
ffmpeg Fix wrong animation duration when using older Libav 2014-02-06 15:57:32 +06:00
ghost Fix/Workaround for NDOF/X11 bug with unreliable GHOST_kFinished events. 2014-02-15 18:40:33 +11:00
guardedalloc Fix typo in mmap commit from a while ago 2014-01-23 18:41:38 +06:00
iksolver Code cleanup: white space and cmake was broken on all platforms 2014-02-03 13:56:34 +11:00
itasc Adapt KDL for compile with clang 3.4, which is stricter with friend classes, 2014-02-17 16:39:03 +01:00
locale OSX: add debug mesg to bl_locale_pgettext for later indeep investigation 2014-02-24 11:18:17 +01:00
memutil Fix T37898: blenderplayer painfully slow in recent builds 2013-12-22 15:26:59 +06:00
mikktspace Style Cleanup: remove preprocessor indentation (updated wiki style guide too) 2013-12-22 14:12:19 +11:00
moto Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00
opencl Possible fix for [#36086] Activating the opencl option in the compositor causes blender crash 2013-07-17 12:57:03 +00:00
opencolorio Fix T37810: GLSL dither shader not working on OS X. 2013-12-14 16:01:48 +01:00
opennl remove duplicate sys-types headers. 2013-05-29 21:38:23 +00:00
raskter code cleanup: use NULL rather then 0 for pointers, and make vars static where possible. 2013-03-22 05:34:10 +00:00
rigidbody Code Cleanup: style 2013-12-27 14:21:03 +11:00
smoke Code Cleanup: WIN32 defines, check for _MSC_VER instead of !FREE_WINDOWS 2014-01-03 20:46:12 +11:00
string fix for buffer out-of-bounds reading for STR_String comparisons with char arrays. 2013-03-22 21:26:59 +00:00
utfconv Fix related to #36319: restore SDL_VIDEODRIVER=dummy environment variable, it 2013-09-23 14:48:28 +00:00
CMakeLists.txt Rework carve integration into boolean modifier 2014-02-13 17:16:53 +06:00
SConscript Totally remove BSP from SConscript 2014-02-19 15:46:44 +06:00