mirror of
https://github.com/Kbz-8/42_vox.git
synced 2026-01-13 07:33:35 +00:00
world generation
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user