| 559 | } |
| 560 | |
| 561 | void 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 | |
| 580 | void Tr2MeshBase::GetDebugOptions( Tr2DebugRendererOptions& options ) |
| 581 | { |
nothing calls this directly
no test coverage detected