MCPcopy Create free account
hub / github.com/ImageEngine/cortex / convertToOSLConventions

Method convertToOSLConventions

src/IECoreScene/ShaderNetworkAlgo.cpp:680–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678
679
680void ShaderNetworkAlgo::convertToOSLConventions( ShaderNetwork *network, int oslVersion )
681{
682 expandRamps( network, "osl:" );
683
684 // \todo - it would be a bit more efficient to integrate this, and only traverse the network once,
685 // but I don't think it's worth duplicated the code - fix this up once this call is standard and we
686 // deprecate and remove convertOSLComponentConnections
687 convertOSLComponentConnections( network, oslVersion);
688
689}
690
691//////////////////////////////////////////////////////////////////////////
692// `convertObjectVector()`

Calls 1