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

Method defaultShaderLoader

src/IECoreGL/ShaderLoader.cpp:337–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337ShaderLoader *ShaderLoader::defaultShaderLoader()
338{
339 static ShaderLoaderPtr t = nullptr;
340 if( !t )
341 {
342 const char *e = getenv( "IECOREGL_SHADER_PATHS" );
343 const char *p = getenv( "IECOREGL_SHADER_INCLUDE_PATHS" );
344 IECore::SearchPath pp( p ? p : "" );
345 t = new ShaderLoader( IECore::SearchPath( e ? e : "" ), p ? &pp : nullptr );
346 }
347 return t.get();
348}

Callers 2

testMethod · 0.80

Calls 1

getMethod · 0.45

Tested by 2

testMethod · 0.64