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

Method SetShaderOption

trinity/Tr2MeshBase.cpp:561–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561void Tr2MeshBase::SetShaderOption( const BlueSharedString& name, const BlueSharedString& value )
562{
563 const auto length = TRIBATCHTYPE_COUNT_OF_BATCH_TYPES;
564 for( auto i = 0; i < length; ++i )
565 {
566 const auto tribatchType = static_cast<TriBatchType>( i );
567 const auto area = GetAreas( tribatchType );
568 for( auto itInner = area->begin(); itInner != area->end(); ++itInner )
569 {
570 const Tr2MeshArea* area = *itInner;
571 const auto material = area->GetMaterialInterface();
572 if( nullptr != material )
573 {
574 material->SetOption( name, value );
575 }
576 }
577 }
578}
579
580void Tr2MeshBase::GetDebugOptions( Tr2DebugRendererOptions& options )
581{

Callers

nothing calls this directly

Calls 4

GetMaterialInterfaceMethod · 0.80
SetOptionMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected