Skip to content

Commit

Permalink
[geometry] default meshes will not be optimized as they are made to s…
Browse files Browse the repository at this point in the history
…pec (for example, the mesh grid is supposed to be high density so that water can be emulated on it)
  • Loading branch information
PanosK92 committed Jan 15, 2025
1 parent 9b4cc36 commit 2de5f8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/Rendering/Renderer_Resources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,9 @@ namespace spartan
mesh->SetResourceFilePath(project_directory + "standard_cone" + EXTENSION_MODEL);
}

// don't optimize this geometry as it's made to spec
mesh->SetFlag(static_cast<uint32_t>(MeshFlags::PostProcessOptimize), false);

mesh->AddGeometry(vertices, indices);
mesh->SetType(type);
mesh->PostProcess();
Expand Down

0 comments on commit 2de5f8c

Please sign in to comment.