| 469 | } |
| 470 | |
| 471 | static inline MaterialResource* GetMaterialResource(const ModelComponent* component, const ModelResource* resource, uint32_t index) { |
| 472 | // TODO: Add support for setting material on different indices |
| 473 | return component->m_Material ? component->m_Material : resource->m_Materials[index].m_Material; |
| 474 | } |
| 475 | |
| 476 | static inline dmRender::HMaterial GetComponentMaterial(const ModelComponent* component, const ModelResource* resource, uint32_t index) { |
| 477 | return GetMaterialResource(component, resource, index)->m_Material; |
no outgoing calls
no test coverage detected