230 Commits

Author SHA1 Message Date
Marc Gilleron
09d0be21e2 Remove remaining usages of HashMap 2022-05-14 19:38:39 +01:00
Trey M
96916814de Fixed issues caused by changes to HashMap in godot 2022-05-13 00:14:03 -05:00
Marc Gilleron
adbfd3b584 floor_to_int to emphasize the return value converts to int 2022-05-02 14:49:40 +01:00
Marc Gilleron
a5e429de6f Moved some Vector3i function specializations to math:: namespace 2022-04-29 23:25:37 +01:00
Marc Gilleron
8cf52b8967 Fix voxel graph test 2022-04-22 22:06:35 +01:00
Marc Gilleron
4e3d4d4ed8 Threading classes wrappers 2022-04-19 00:32:37 +01:00
Marc Gilleron
2168bc5e12 Fixed unused variable warning 2022-04-16 01:45:57 +01:00
Marc Gilleron
6fb9dd6c04 Fix missing header for GCC (5) 2022-04-16 01:16:58 +01:00
Marc Gilleron
f452d8577a Fix shadowing and signedness warnings 2022-04-16 01:16:43 +01:00
Marc Gilleron
a5c3f8b824 Fix code to work with Godot's new FileAccess RefCounted object 2022-04-15 23:13:31 +01:00
Marc Gilleron
824a2955a9 Split VoxelGraphRuntime into several files 2022-04-15 16:09:35 +01:00
Marc Gilleron
bfa24402ac Renamed util/funcs.h => container_funcs.h 2022-04-14 21:43:45 +01:00
Marc Gilleron
e9af708c3b Moved some utility functions
- sort goes to math funcs
- math funcs specializations for vector types go to vector files
- use ZN macros in a few more places
2022-04-14 21:22:22 +01:00
Marc Gilleron
5a2624735e Added experimental shader generation from voxel graph 2022-04-13 00:06:20 +01:00
Marc Gilleron
47fbddf73b Fix nodes of the graph never get freed 2022-04-11 19:17:37 +01:00
Marc Gilleron
87d98e9162 Engine-agnostic error macros 2022-04-11 02:10:44 +01:00
Marc Gilleron
0cc3801655 Define smart pointers default allocator in a single place 2022-04-10 20:10:33 +01:00
Marc Gilleron
18584f4e87 Added per-node profiling info 2022-04-10 14:42:40 +01:00
Marc Gilleron
cc734f7676 Fix expression node not compiled correctly, outputs were not reconnected 2022-04-10 14:40:41 +01:00
Marc Gilleron
219c7bfda3 Changed prefix of profiling macros 2022-04-09 15:33:08 +01:00
Marc Gilleron
ab5d3a22d3 Abstract logging for verbose print 2022-04-09 15:00:34 +01:00
Marc Gilleron
5afab83cd6 Include less things from macros.h 2022-04-09 00:53:51 +01:00
Marc Gilleron
22f17f6294 Fix macro not usable in release builds 2022-04-07 22:33:21 +01:00
Marc Gilleron
6663fdad92 Fix signedness warning 2022-04-07 21:05:05 +01:00
Marc Gilleron
2fece1d892 VoxelGraphNodeDB::get_singleton() must not return null, changed to reference 2022-04-07 20:44:43 +01:00
Marc Gilleron
96224c2231 ProgramGraph::get_node() must not return null, changed to a reference 2022-04-07 20:35:11 +01:00
Marc Gilleron
2fba154b42 Use Powi if the power exponent in Expression is a constant positive integer 2022-04-07 20:03:21 +01:00
Marc Gilleron
5519054c01 Unify macro prefixes 2022-04-06 23:26:54 +01:00
Marc Gilleron
090d3485e5 Use unique pointers in ExpressionParser 2022-04-06 22:00:32 +01:00
Marc Gilleron
0e523f79fe Added functions to expression node 2022-04-06 01:13:38 +01:00
Marc Gilleron
092fc6db9e Fix Powi 2022-04-05 19:10:36 +01:00
Marc Gilleron
5445042f72 Use ZN_TTR 2022-04-04 23:08:59 +01:00
Marc Gilleron
4634cfac0e Merge branch 'master' into expression_node 2022-04-04 22:43:05 +01:00
Marc Gilleron
998a5f6052 Fix parentheses 2022-04-04 01:24:55 +01:00
Marc Gilleron
9c81ccc5ba Use special TTR macro for non-editor code
Because TTR is not available in non-editor builds
2022-04-04 00:20:36 +01:00
Marc Gilleron
e0008d3335 Fix compilation now Godot comes with its own FastNoiseLite.
The version shipped with the module is now prefixed.
Removed usages of OpenSimplexNoise.
2022-04-03 20:07:17 +01:00
Marc Gilleron
646cbacd64 Added Expression node to VoxelGeneratorGraph. Needs polishing.
Some things to do:
- Support function calls
- Show expression in the node GUI, eventually edit it there
- Optimize power function
2022-04-03 16:43:04 +01:00
Marc Gilleron
fd0f524bf5 Commented unused variable for now to avoid warning 2022-03-31 22:51:48 +01:00
Marc Gilleron
f631d8880c Added configuration warnings to resources 2022-03-06 01:10:47 +00:00
Marc Gilleron
72e714e15b Added OutputSingleTexture node for outputting a single texture index per voxel 2022-02-27 22:07:42 +00:00
Marc Gilleron
6b6255e93d This should be integer weights 2022-02-27 22:06:53 +00:00
Marc Gilleron
493b93a051 SDF is now encoded with inorm8 and inorm16 2022-02-26 22:51:29 +00:00
Marc Gilleron
0e54920afb Replace existing connection if dragging from/to an input port having one already 2022-02-20 16:57:29 +00:00
Marc Gilleron
729b2a3391 Unnecessary includes 2022-02-20 13:31:25 +00:00
Marc Gilleron
31b4d0bc68 Make it compile with float=64 2022-02-14 21:06:31 +00:00
Marc Gilleron
b3faec2bef Removed voxel_block_request.h, use specialized structs 2022-02-12 23:37:02 +00:00
Marc Gilleron
a9ba6e0056 Unconnected inputs show their default value directly on the node 2022-02-05 20:09:09 +00:00
Marc Gilleron
8b15cdf604 Can be const 2022-02-05 16:27:52 +00:00
Marc Gilleron
5685e3c41e Use references instead of pointers, they should not be null 2022-02-05 16:23:03 +00:00
Marc Gilleron
239a87a6e9 Moved noise and SDF range utilities to util/ 2022-02-05 16:14:57 +00:00