Marc Gilleron
1a8cc4380f
Fix normalmaps in blocky mesher
2021-01-22 19:18:26 +00:00
Rathma
3aeca4639f
Switched to deterministic look-up table for cube uvs.
...
Changed code to snake case
Changed PoolArrays from real_t to float
Removed tangents from colored cube generator
2020-11-09 00:45:49 -05:00
Marc Gilleron
d4d2b6fd9e
No longer copy voxels before scheduling threaded tasks. VoxelBuffers now have a lock.
2020-08-29 22:09:54 +01:00
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