| 574 | } |
| 575 | |
| 576 | void Model::GenerateBoxScene(const Float3& dimensions, const Float3& position, |
| 577 | const Quaternion& orientation, const wchar* colorMap, |
| 578 | const wchar* normalMap) |
| 579 | { |
| 580 | meshMaterials.Init(1); |
| 581 | MeshMaterial& material = meshMaterials[0]; |
| 582 | material.TextureNames[uint64(MaterialTextures::Albedo)] = colorMap; |
| 583 | material.TextureNames[uint64(MaterialTextures::Normal)] = normalMap; |
| 584 | fileDirectory = L"..\\Content\\Textures\\"; |
| 585 | LoadMaterialResources(meshMaterials, L"..\\Content\\Textures\\", false, materialTextures, descriptorHeap); |
| 586 | |
| 587 | vertices.Init(NumBoxVerts); |
| 588 | indices.Init(NumBoxIndices); |
| 589 | |
| 590 | meshes.Init(1); |
| 591 | meshes[0].InitBox(dimensions, position, orientation, 0, vertices.Data(), indices.Data()); |
| 592 | |
| 593 | CreateBuffers(); |
| 594 | } |
| 595 | |
| 596 | void Model::GenerateBoxTestScene() |
| 597 | { |
nothing calls this directly
no test coverage detected