diff options
author | nathan <nathansmith@disroot.org> | 2025-08-06 12:43:37 +0000 |
---|---|---|
committer | nathan <nathansmith@disroot.org> | 2025-08-06 12:43:37 +0000 |
commit | 94ca30b13bffe1f02313b7fd32b2320e5c490fa5 (patch) | |
tree | 5019ec84a0c39fd2e38a11d03672e2ccdef6020d /src/world.c | |
parent | c5989ca9bcc1758f4d772d20b8bd4ae7762bc75e (diff) | |
download | FindThings-94ca30b13bffe1f02313b7fd32b2320e5c490fa5.tar.gz FindThings-94ca30b13bffe1f02313b7fd32b2320e5c490fa5.tar.bz2 FindThings-94ca30b13bffe1f02313b7fd32b2320e5c490fa5.zip |
UGGGGG
Diffstat (limited to 'src/world.c')
-rw-r--r-- | src/world.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/world.c b/src/world.c index 1d0aa10..828aaa3 100644 --- a/src/world.c +++ b/src/world.c @@ -482,6 +482,9 @@ Seed generateWorldUtilityPoles(World* world, Seed seed, int start, int end) Entity entity = createEntity(UTILITY_POLE, Vector3Zero()); seed = putEntityInRandomPlace(world, seed, &entity); world->entities[index] = entity; + + world->utilityPoleTransforms[index - start] = MatrixTranslate( + entity.position.x, entity.position.y, entity.position.z); } return seed; @@ -614,6 +617,11 @@ void updateWorld(World* world, Game* game) updateEntity(&world->entities[index], game); } + DrawMeshInstanced(game->assets.models[UTILITY_POLE_MODEL].meshes[0], + game->assets.models[UTILITY_POLE_MODEL].materials[0], + world->utilityPoleTransforms, + WORLD_UTILITY_POLE_COUNT); + // Draw BVH leafs. #ifdef FT_DEBUG_MODE if (IsKeyPressed(KEY_RIGHT)) |