MCPcopy Create free account
hub / github.com/carbonengine/trinity / SetResourceTexture2D

Method SetResourceTexture2D

trinity/Shader/Tr2Effect.cpp:2257–2268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2255}
2256
2257void Tr2Effect::SetResourceTexture2D( const BlueSharedString& name, const char* path )
2258{
2259 auto existing = GetResourceByName( name.c_str() );
2260 if( TriTextureParameterPtr resource = BlueCastPtr( existing ) )
2261 {
2262 resource->SetResourcePath( path );
2263 }
2264 else
2265 {
2266 AddResourceTexture2D( name, path );
2267 }
2268}

Callers 4

ApplyBloomFunction · 0.80
ApplyVignetteFunction · 0.80
ApplyLutsFunction · 0.80
RenderGodRaysMethod · 0.80

Calls 1

SetResourcePathMethod · 0.80

Tested by

no test coverage detected