Marc Gilleron
414aea52f3
Replaced VoxelDataMap with VoxelData in VoxelLodTerrain
2022-08-28 20:45:42 +01:00
Marc Gilleron
8ed72225a3
Rename function
2022-08-25 00:11:54 +01:00
Marc Gilleron
b1869f390a
Added iterators to Span<T>
2022-08-24 21:27:28 +01:00
Marc Gilleron
f8883966db
Split Godot utilities in their own files
2022-08-20 18:25:23 +01:00
Marc Gilleron
5609215232
Rename profiling scopes
2022-08-19 19:53:37 +01:00
Marc Gilleron
9cdaf1fd45
Switch to 2D textures instead of texture arrays due to layer count limitation
2022-08-18 21:29:09 +01:00
Marc Gilleron
a28a172763
Fix wrong block coordinate systems when computing normalmaps and a few other things
2022-08-17 22:23:13 +01:00
Marc Gilleron
f6d35ad97e
Fix wrong condition
2022-08-17 22:20:05 +01:00
Marc Gilleron
b9d60070d7
Use 2 bytes per pixel instead of 3 in lookup textures
2022-08-17 20:50:19 +01:00
Marc Gilleron
54a4782618
Use band-based task priorities, where higher means higher
2022-08-16 21:12:10 +01:00
Marc Gilleron
5943b1d549
Moved VirtualTextureOutput out of VoxelMesher
2022-08-14 22:34:27 +01:00
Marc Gilleron
92b3c25292
Moved distance_normalmaps to engine/ since it doesn't depend on meshers
2022-08-14 21:53:59 +01:00
Marc Gilleron
bab04748b3
Make normalmap baking more independent
...
- The baking code no longer depends on Transvoxel
- Moved usage out of the Transvoxel mesher, but still uses its fastpath
for cells. There is still no "generic" path because there is no need yet.
- Moved settings on VoxelLodTerrain.
2022-08-14 19:15:55 +01:00
Marc Gilleron
a930a6ae11
Only update virtual textures if they are not updating already
2022-08-13 21:59:46 +01:00
Marc Gilleron
dbbab6a81d
Separate normalmap baking from meshing, so meshes don't have to wait.
...
- The option for having it separate is hardcoded and both code paths still
exist. Not sure if that will be exposed or removed entirely.
- Still need to limit the frequency at which normalmaps are updated
- Would be nice to make this mesher-independent,
Transvoxel is just a fastpath
- Task priority might need improvement, it's a bit messy. Maybe use bands?
2022-08-13 16:40:46 +01:00
Marc Gilleron
c15ded67f6
Vary tile size with LOD and integrate to VoxelLodTerrain
2022-08-07 16:40:27 +01:00
Marc Gilleron
c645bb708d
Comments
2022-08-06 23:15:42 +01:00
Marc Gilleron
2d98510543
Fix empty result when a generator is used with an empty stream in VoxelLodTerrain
2022-07-19 22:55:02 +01:00
Marc Gilleron
5ca09d712e
Renamed VoxelServer => VoxelEngine
2022-07-16 23:59:06 +01:00