diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2022-09-01 00:04:48 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2022-09-01 00:04:48 +0200 |
| commit | 76a1e5b39825e2aa26d7d6625879dab63b3dadb6 (patch) | |
| tree | 109b1b1f4dc8274eb47b4fb96b4d86db50f22f8b /src/mesh.cpp | |
| parent | 8b8b3c8aaa859ceff95e82e26b81410688613cd7 (diff) | |
Fix bvh generation
Diffstat (limited to 'src/mesh.cpp')
| -rw-r--r-- | src/mesh.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesh.cpp b/src/mesh.cpp index bfc5caf..191aaf7 100644 --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -3,11 +3,10 @@ static std::vector<Mesh> meshes {}; void Mesh::add_submesh(const submesh& submesh) { - auto position_components = attribute_components(ATTRIBUTE_TYPE::POSITION); submeshes.emplace_back( submesh_info { - (uint32_t)attributes[ATTRIBUTE_TYPE::POSITION].size() / position_components, - (uint32_t)indices.size(), + (uint32_t)vertex_count, + (uint32_t)index_count, submesh.index_count / 3, 0 } |
