Function Kataglyphis::addMeshesForRanges

Function Kataglyphis::addMeshesForRanges#

Function Documentation#

void Kataglyphis::addMeshesForRanges(Model &model, const std::shared_ptr<VulkanDevice> &device, vk::CommandPool pool, const std::vector<Vertex> &vertices, const std::vector<unsigned int> &indices, const std::vector<unsigned int> &materialIndex, const std::vector<ObjMaterial> &materials, const std::vector<MeshRange> &ranges)#

The OBJ upload: the empty-ranges single-mesh case plus the per-range sliceMeshRange -> add_new_mesh loop. Always forwards range.doubleSided and range.alphaBlended - MeshRange.ixx documents both as always false for OBJ, so forwarding them is behaviour-identical to the default it used to rely on.