- cross-posted to:
- gamedev@lemmy.blahaj.zone
- gamedev@programming.dev
- cross-posted to:
- gamedev@lemmy.blahaj.zone
- gamedev@programming.dev
It was an interesting task and I learned a lot about how meshes are represented internally.
Initially I used 8 vertices for each wall. But then I discovered that if I needed a different color and normal for each side, then I needed a different vertex! So I reworked the mesh generation to make 20 vertices per mesh (for each side with no bottom).
The project is open source, so if you are interested in the implementation, you can take a look at mesh_update_system
. I organize my modules as plugins, so you can copy the module and its submodules into your game with some minor edits and enable WallPlugin
.
You must log in or register to comment.