1059 Commits

Author SHA1 Message Date
Marc Gilleron
586b5bc0b8 Added height limiter 2020-12-31 20:33:19 +00:00
Marc Gilleron
a766e8aefb Added slope limit 2020-12-30 23:24:30 +00:00
Marc Gilleron
2b292818c0 Instances now get removed when the user digs under them 2020-12-30 20:11:46 +00:00
Marc Gilleron
3e510d2e93 get_voxel may be const 2020-12-30 20:09:31 +00:00
Marc Gilleron
fd6125df67 Fix crash on exit 2020-12-29 22:53:58 +00:00
Marc Gilleron
0449eb53e3 Missing function 2020-12-29 22:33:30 +00:00
Marc Gilleron
e46c02d475 Merge branch 'master' into instancing 2020-12-29 22:26:57 +00:00
Marc Gilleron
a34710f74c Added VoxelInstancer. First working API, script only. 2020-12-29 22:25:22 +00:00
Marc Gilleron
ca22dc5a29 Should not be there 2020-12-29 22:18:08 +00:00
Marc Gilleron
e676324e3d Update changelog 2020-12-29 22:15:03 +00:00
Marc Gilleron
5fdc4b6485 Debug check and some formatting 2020-12-29 22:14:49 +00:00
Marc Gilleron
d64340aa73 Small optimization in Remap node 2020-12-29 22:12:31 +00:00
Marc Gilleron
e6c44f9768 Don't recycle materials when we only save blocks
This should only happen if the block is actually about to get unloaded
2020-12-29 22:10:31 +00:00
Marc Gilleron
edfc96e4a5 Fixed crash when hiding terrain while selected in editor 2020-12-27 15:51:03 +00:00
Marc Gilleron
57fac6c5b1 Fix GCC warning 2020-12-26 19:01:49 +00:00
Marc Gilleron
e462cd788a Optimized range analysis for images and spherical map lookups 2020-12-26 18:58:16 +00:00
Marc Gilleron
cc13bbd70a There is an About window now 2020-12-25 17:18:03 +00:00
Marc Gilleron
860c0a2f1d Update changelog 2020-12-25 17:11:08 +00:00
Marc Gilleron
e988cb9124 Show main thread tasks 2020-12-25 17:08:40 +00:00
Marc Gilleron
c94cb9c4a1 Multiply instead of divide 2020-12-25 17:06:40 +00:00
Marc Gilleron
9e423a58f7 Voxel graph optimizations:
- Dynamically adjust SDF scaling to reduce terracing caused by storage resolution
- Optimize range analysis more aggressively
2020-12-24 23:16:34 +00:00
Marc Gilleron
c8c3886c6f Voxels now use 16-bit by default on the SDF and TYPE channels 2020-12-24 23:12:36 +00:00
Marc Gilleron
a12144304f Optimized Transvoxel (nearly twice as fast), also allowing 16, 32 and 64 bit precision 2020-12-23 02:27:54 +00:00
Marc Gilleron
d009049d4f Added experimental functions to bake sphere maps from the generator
- The runtime API now works with float positions
- Fixed XZ optimization, cached positions were not assigned
2020-12-22 02:13:46 +00:00
Marc Gilleron
7c6bfe0dbc Added Normalize node to voxel graph 2020-12-21 20:06:20 +00:00
Marc Gilleron
ae9abb0248 Added SdfSphereHeightmap node to graph generator 2020-12-21 02:00:31 +00:00
Marc Gilleron
eb9a5b7e07 Added background tasks indicator when a terrain is selected 2020-12-20 00:14:08 +00:00
Marc Gilleron
418cf0e630 Streaming/LOD can be set to follow the editor camera instead of being centered on world origin 2020-12-19 23:16:10 +00:00
Marc Gilleron
659e45fe32 Fix hyperlinks not working in about window. Also made license text selectable 2020-12-18 23:12:32 +00:00
Marc Gilleron
6d9fd2f8a0 Voxel terrain nodes now have a common abstract base class. Also explicitely made a few other classes abstract 2020-12-18 22:58:41 +00:00
Marc Gilleron
71b4139fb3 Fix another warning about precedence clarity 2020-12-18 21:29:56 +00:00
Marc Gilleron
4ca7a708d5 Fix warning about precedence clarity 2020-12-18 21:24:41 +00:00
Marc Gilleron
d92adc4d94 Give a different name to release CI builds, they could not be told apart 2020-12-18 21:22:57 +00:00
Marc Gilleron
03f2900f6a Fix error when a region file gets created, it was wrongly trying to migrate because the version wasn't set 2020-12-18 21:20:00 +00:00
Marc Gilleron
2018625b34 Moved simple generators under a simple/ folder 2020-12-18 21:19:02 +00:00
Marc Gilleron
791bdafff1 Meshers are now resources assigned on terrain nodes 2020-12-18 21:01:50 +00:00
Marc Gilleron
89abb37e0f consts 2020-12-18 20:52:09 +00:00
Marc Gilleron
dec9b31801 Rename index() to get_index() to make it less like a variable name 2020-12-18 20:48:08 +00:00
Marc Gilleron
87e575e504 Use reinterpret_cast instead of ambiguous C-style cast 2020-12-18 20:46:54 +00:00
Marc Gilleron
a37b3a9c06 Don't show menu by default 2020-12-17 23:01:35 +00:00
Marc Gilleron
2f8687fd12 Added About window and list of donors 2020-12-17 21:45:44 +00:00
Rathma
8d42c84e1a Added 3x the number of tangents we actually needed 2020-12-14 03:25:28 -05:00
Marc Gilleron
e73cdaa707 Exclude editor stuff when building an export template 2020-12-04 22:01:41 +00:00
Marc Gilleron
117802c807 Unused variable 2020-11-21 19:51:41 +00:00
Marc Gilleron
57d09b5b7d Merge branch 'master' of https://github.com/Zylann/godot_voxel 2020-11-21 19:07:30 +00:00
Marc Gilleron
25445f3f6c Added debug function to dump a VoxelLodTerrain as nodes in a PackedScene 2020-11-21 18:31:28 +00:00
Marc Gilleron
d52f882ae1 VoxelMap is no longer bound, it had no use in the API 2020-11-21 18:31:11 +00:00
Marc Gilleron
e18b3a55fd Don't make the editor redraw every frame when gizmos are shown 2020-11-21 18:15:12 +00:00
Rathma
fdc14fcd87 Switched tangents to on by default & changed to a passed value to the
bake method rather than being a property of the voxel
2020-11-11 21:58:50 -05:00
Rathma
c9c85ec7cd Tangent baking now optional by toggling in editor under VoxelLibrary 2020-11-09 20:45:56 -05:00