Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
themeMidnight
/** 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" );

...