Blender Git Loki

Git Commits -> Revision 12109dd

Revision 12109dd by Thomas Dinges (master)
January 26, 2014, 15:23 (GMT)
Cycles Standalone: Basic support for external OSL shaders.

* Very simple implementation, only allows for 1 output socket. As we haven't decided yet whether we keep the XML API, rather not spend more time on this now.

* To use an external osl shader, put the .osl file next to the xml file.
* Parameters: "output" is the output socket name, "output_type" the variable type (float, color and closure color are supported).
Example:
<osl_shader name="tex" src="ramp_closure.osl" output="Phong" output_type="closure color" />
<connect from="tex Phong" to="output surface" />

Commit Details:

Full Hash: 12109dd18e622a5c469c4fb5b802edfee0d2b2de
Parent Commit: bb83bdf
Lines Changed: +26, -0

1 Modified Path:

/intern/cycles/app/cycles_xml.cpp (+26, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021