Commit Graph

1021 Commits (2c6eb114b220d81348163c9cbe3385bd03887513)

Author SHA1 Message Date
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
Rathma c068ad7455 Forgot to clear some tangents in the BakedData class. 2020-11-09 19:51:21 -05:00
Rathma fd07f76586 Changed real_t => float for all tangent related variables(for real this time) 2020-11-09 01:07:59 -05:00
Rathma 08974daf56 Changed real_t => float for all tangent related variables 2020-11-09 01:03:07 -05: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
Rathma 04aaeab615 Somehow missed I redefined a variable on a local build. 2020-11-08 21:43:42 -05:00
Rathma a887fb12f5 Added a few comments, fixed an indexing and logic mistake.
Also the visual glitch I referred to in my last comment was pre-existing
or user-error it appears.
2020-11-08 21:31:16 -05:00
Rathma fff1ee5f83 Added normal mapping to blocky & cube meshers by implementing tangent
calculations in the meshers. This caused a visual bug in the blocky
mesher that needs to be ironed out.
2020-11-08 09:43:18 -05:00
Marc 507b4c8922
Merge pull request #207 from tdaffin/fix_mono_glue
Fix bindings so that generate-mono-glue for C# bindings works
2020-11-08 00:04:49 +00:00
Tom Daffin 17a7674316 Fix bindings so that generate-mono-glue for C# bindings works 2020-11-07 08:02:27 -07:00
Marc 4991b24519
Added funding file 2020-11-06 23:18:22 +00:00
Marc Gilleron 4c1e149aef Optimized iteration over all blocks of a map (but likely, ECS approach may be better in the future) 2020-11-01 03:25:48 +00:00
Marc Gilleron 10d6e5bd8a Script-based generators and streams have their own class, should fix C# API 2020-10-31 22:11:25 +00:00
Marc Gilleron 18e7792bd5 Added access to block local transform in custom shaders for VoxelLodTerrain 2020-10-31 01:15:50 +00:00
Marc Gilleron 09b32c9dd8 Allow to change process mode from script on VoxelLodTerrain 2020-10-30 19:02:00 +00:00
Marc Gilleron 23123fc920 GCC warning 2020-10-29 22:59:09 +00:00
Marc Gilleron a31dcdd3bd Don't clamp view distance for now, but should be done dynamically 2020-10-29 22:58:49 +00:00
Marc Gilleron 01776d2ee1 Don't load neighboring blocks across fixed boundaries 2020-10-29 22:58:19 +00:00
Marc Gilleron 90cc96d241 Update viewer position on transform changes instead of process 2020-10-29 00:55:04 +00:00
Marc Gilleron 40d299413f Don't compute matrices if they aren't used when transforming blocks 2020-10-29 00:54:27 +00:00
Marc Gilleron b5470fab2b Fix big CPU due to blocks never getting unloaded
The unloading logic is supposed to run for all LOD levels except the biggest one,
but instead was running for all LODs except the smallest.
2020-10-29 00:53:04 +00:00
Marc Gilleron bf8a4229a1 Added debug function to get how many blocks are currently in memory 2020-10-29 00:49:12 +00:00
Marc Gilleron 1200b012bb Some notes about tracy 2020-10-29 00:47:25 +00:00
Marc Gilleron 510d25e604 Expose find_node_by_name 2020-10-29 00:42:55 +00:00
Marc Gilleron 44a1af2043 Don't crash if graph resources are null 2020-10-26 19:58:54 +00:00
Marc Gilleron 56b4b55b53 Fix missing return 2020-10-25 23:07:53 +00:00
Marc Gilleron a20a7bda03 Update changelog 2020-10-25 21:21:47 +00:00
Marc Gilleron f3108de4f9 Removed old viewer API from VoxelLodTerrain, support 1 VoxelViewer at a time for now 2020-10-25 21:21:37 +00:00
Marc Gilleron 61f17ce96d Formatting 2020-10-25 20:38:23 +00:00
Marc Gilleron b672013f00 Fix an occurrence of Variant uint64_t ambiguity for Mac builds 2020-10-25 20:27:09 +00:00
Marc Gilleron 0cb8188eb7 Added ability to name graph nodes 2020-10-25 20:26:25 +00:00
Marc Gilleron bb549198f6 Replaced Voxel.transparent with a transparency_index for more control over face culling 2020-10-25 16:59:19 +00:00
Marc Gilleron c6572142eb Typo 2020-10-25 16:56:04 +00:00
Marc Gilleron 85bb3d7b28 VoxelTerrain can be transformed 2020-10-25 00:55:57 +01:00
Marc Gilleron 850874893c Fix debug renderer not putting back pooled cubes back to visible when used again 2020-10-25 00:55:01 +01:00
Marc Gilleron e05a53b370 Fix GCC error 2020-10-25 00:54:34 +01:00
Marc Gilleron 361f7d73ed VoxelLodTerrain handles transform changes (VoxelTool still has to account for that) 2020-10-24 03:22:02 +01:00
Marc Gilleron d158a92f57 Show bounds and octrees of VoxelLodTerrain with debug drawing 2020-10-24 00:08:14 +01:00
Marc Gilleron e70f87e4a7 Fixed bounds being snapped too large 2020-10-24 00:06:09 +01:00