...
Code Block | ||||
---|---|---|---|---|
| ||||
/** We can inline OSL source code directly */ const char *stsourcecode = "shader stuv() { Ci = emission() * color(su, tv, 0); } "; nsi.Create( "stuv", "shader" ); nsi.SetAttribute( "stshaderuvshader", NSI::CStringPArg("shadersource", "st"sourcecode) ); nsi.Connect( "stshaderuvshader", "Ci", "simplesshader", "Cs" ); |
...