Commit Graph

10 Commits (88d170adff2c9e5e057b34aa0be7fdae08aab0db)

Author SHA1 Message Date
Marc Gilleron ebc6be35d1 Implement LOD transitions in VoxelLodTerrain
- VoxelBlock contains 6 optional transition meshes
- VoxelLodTerrain calculates transition masks when block visibility changes
- VoxelMesher can now specify different min and max paddings
- Fix Cube::SIDE_POSITIVE/NEGATIVE_X/Y/Z enum not matching Cube::g_side_normals
- Convert transition masks to make up for the Cube:: inconsistency for now
2019-12-31 16:48:46 +00:00
Marc Gilleron e8bb2fa5e1 Implement rotated transition meshes for all 6 sides,
and fix miscalculated secondary positions on max edges
2019-12-28 21:38:32 +00:00
Marc Gilleron 12a97cca5a Reorganize all files and rename a few things 2019-04-28 17:58:29 +01:00
Marc Gilleron d0ab02a397 Fix UVs, change tables to use OpenGL convention... 2018-10-05 23:51:55 +01:00
Marc Gilleron da0a1a058c Moved side, edge and corner enums to cube tables, and renamed CubeTables to Cube 2018-09-30 19:38:02 +01:00
Marc Gilleron 8ffa7110c8 Optimize mesher: access channel directly and remove some push_backs 2018-09-30 01:55:09 +01:00
Marc Gilleron 085f94579a Use named constant 2018-09-25 00:53:12 +01:00
Marc Gilleron a0026dbbeb Fix includes 2018-09-19 20:25:04 +01:00
Marc Gilleron aa4d04d1a0 Moved moore neighboring to cube tables 2017-08-20 15:37:07 +02:00
Marc Gilleron cb6de49b96 Got rid of SurfaceTool in the cubic mesher, moved cube tables in their own file, tweaked their winding 2017-08-19 21:10:31 +02:00