| 121 | } |
| 122 | |
| 123 | MaterialBase* StaticModel::GetMaterial(int32 meshIndex, int32 lodIndex) const |
| 124 | { |
| 125 | auto model = Model.Get(); |
| 126 | ASSERT(model && |
| 127 | Math::IsInRange(lodIndex, 0, model->GetLODsCount()) && |
| 128 | Math::IsInRange(meshIndex, 0, model->LODs[lodIndex].Meshes.Count())); |
| 129 | const auto& mesh = model->LODs[lodIndex].Meshes[meshIndex]; |
| 130 | const auto materialSlotIndex = mesh.GetMaterialSlotIndex(); |
| 131 | MaterialBase* material = Entries[materialSlotIndex].Material.Get(); |
| 132 | return material ? material : model->MaterialSlots[materialSlotIndex].Material.Get(); |
| 133 | } |
| 134 | |
| 135 | Color32 StaticModel::GetVertexColor(int32 lodIndex, int32 meshIndex, int32 vertexIndex) const |
| 136 | { |
nothing calls this directly
no test coverage detected