world generation

This commit is contained in:
2025-05-10 14:48:27 +02:00
parent 12d4368f16
commit 9d58289383
12 changed files with 189 additions and 67 deletions

View File

@@ -45,6 +45,8 @@ namespace Scop
pipeline.BindPipeline(cmd, 0, {});
for(auto actor : scene.GetActors())
{
if(!actor->IsVisible())
continue;
ModelData model_data;
model_data.model_mat = Mat4f::Identity();
model_data.model_mat.SetTranslation(actor->GetPosition() - actor->GetModel().GetCenter());