6 Commits

Author SHA1 Message Date
Marc Gilleron
ff082c5f2b Undo deferred transition mesh tasks, superseded by combined transitions 2022-06-25 20:44:41 +01:00
Marc Gilleron
ce91b3890c Combine regular and transition meshes together.
- Less draw calls
- Much faster rendering updates (about 5x),
  although colliders are still the biggest bottleneck so when collision is
  enabled this improvement isn't noticeable
- A shader is now always required to render Transvoxel properly.
  TODO: integrate a default one when no material is assigned?
2022-06-25 16:47:09 +01:00
Marc Gilleron
c7d8c2557c Attempting to give priority to main mesh building over transition meshes.
This effectively creates them after ALL main meshes have been built,
resulting in a seemingly faster convergence of LOD, however when moving
around it causes some cracks to appear briefly. This can be bad if the
terrain is dark and the underlying skybox is bright. Might need to be
optional, or find a different approach.
2022-06-22 22:05:25 +01:00
Marc Gilleron
aad2f0df2d Fix transition meshes not removed from the world 2022-05-16 22:07:57 +01:00
Marc Gilleron
297e2b3f92 Changing a material now updates existing meshes instead of only new ones (VoxelTerrain only) 2022-03-26 22:28:18 +00:00
Marc Gilleron
8d8d8b336d Moved VoxelLodTerrain and VoxelTerrain stuff to their own folders 2022-03-20 22:57:53 +00:00