Skip to content

Commit

Permalink
Vob mesh chunking
Browse files Browse the repository at this point in the history
  • Loading branch information
Katharsas committed Sep 12, 2024
1 parent aa45ceb commit 214b779
Show file tree
Hide file tree
Showing 12 changed files with 210 additions and 142 deletions.
6 changes: 3 additions & 3 deletions ZenRen/src/assets/DebugMeshes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace assets
return result;
}

void loadInstanceMeshBboxDebugVisual(unordered_map<Material, VEC_VERTEX_DATA>& target, const StaticInstance& instance)
void loadInstanceMeshBboxDebugVisual(VERT_CHUNKS_BY_MAT& target, const StaticInstance& instance)
{
vector<VERTEX_POS> facesPos;
vector<VERTEX_OTHER> facesOther;
Expand Down Expand Up @@ -96,7 +96,7 @@ namespace assets
return result;
}

void loadPointDebugVisual(unordered_map<Material, VEC_VERTEX_DATA>& target, const VEC3& pos, const VEC3& scale, const D3DXCOLOR& color)
void loadPointDebugVisual(VERT_CHUNKS_BY_MAT& target, const VEC3& pos, const VEC3& scale, const D3DXCOLOR& color)
{
vector<VERTEX_POS> facesPos;
vector<VERTEX_OTHER> facesOther;
Expand Down Expand Up @@ -134,7 +134,7 @@ namespace assets
return result;
}

void loadLineDebugVisual(unordered_map<Material, VEC_VERTEX_DATA>& target, const VEC3& posStart, VEC3& posEnd, const D3DXCOLOR& color)
void loadLineDebugVisual(VERT_CHUNKS_BY_MAT& target, const VEC3& posStart, VEC3& posEnd, const D3DXCOLOR& color)
{
vector<VERTEX_POS> facesPos;
vector<VERTEX_OTHER> facesOther;
Expand Down
6 changes: 3 additions & 3 deletions ZenRen/src/assets/DebugMeshes.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace assets
{
void loadInstanceMeshBboxDebugVisual(render::VERTEX_DATA_BY_MAT& target, const render::StaticInstance& instance);
void loadPointDebugVisual(render::VERTEX_DATA_BY_MAT& target, const VEC3& pos, const VEC3& scale = { 0.f, 0.f, 0.f }, const D3DXCOLOR& color = D3DXCOLOR(1, 0, 0, 1));
void loadLineDebugVisual(render::VERTEX_DATA_BY_MAT& target, const VEC3& posStart, VEC3& posEnd, const D3DXCOLOR& color = D3DXCOLOR(1, 0, 0, 1));
void loadInstanceMeshBboxDebugVisual(render::VERT_CHUNKS_BY_MAT& target, const render::StaticInstance& instance);
void loadPointDebugVisual(render::VERT_CHUNKS_BY_MAT& target, const VEC3& pos, const VEC3& scale = { 0.f, 0.f, 0.f }, const D3DXCOLOR& color = D3DXCOLOR(1, 0, 0, 1));
void loadLineDebugVisual(render::VERT_CHUNKS_BY_MAT& target, const VEC3& posStart, VEC3& posEnd, const D3DXCOLOR& color = D3DXCOLOR(1, 0, 0, 1));
}
Loading

0 comments on commit 214b779

Please sign in to comment.