2129 Commits

Author SHA1 Message Date
Marc Gilleron
5bb0f4a508 Fix some signedness GCC warnings 2022-08-07 23:00:41 +01:00
Marc Gilleron
8851361531 Expanded shader API reference 2022-08-07 20:56:13 +01:00
Marc Gilleron
54bfd0fddc Wrong varying 2022-08-07 19:06:11 +01:00
Marc Gilleron
fcd1fc38a5 Group properties in VoxelMesherTransvoxel 2022-08-07 18:05:16 +01:00
Marc Gilleron
af324c7d9f Added configuration warning when using distance normals with an incompatible generator 2022-08-07 17:58:38 +01:00
Marc Gilleron
0bfe6395f0 Initial documentation for distance normals 2022-08-07 17:46:51 +01:00
Marc Gilleron
04bc2110df Default octahedral encoding to false for now because it doesnt look good enough 2022-08-07 17:46:20 +01:00
Marc Gilleron
c15ded67f6 Vary tile size with LOD and integrate to VoxelLodTerrain 2022-08-07 16:40:27 +01:00
Marc Gilleron
8dab1e8f2a Fail earlier if the generator does not support series generation 2022-08-07 16:15:51 +01:00
Marc Gilleron
98feef9b12 Added series generation to VoxelGeneratorNoise2D 2022-08-07 16:15:17 +01:00
Marc Gilleron
11107896f3 Print size of more things 2022-08-06 23:15:56 +01:00
Marc Gilleron
c645bb708d Comments 2022-08-06 23:15:42 +01:00
Marc Gilleron
4b1ebf2bcc Move function below to keep ray_intersects_triangle grouped 2022-08-06 22:47:43 +01:00
Marc Gilleron
dcc5e3c174 Added option for octahedral encoding of normals to save memory 2022-08-04 21:19:02 +01:00
Marc Gilleron
3606ab9b93 No need to cache direction 2022-08-04 21:16:33 +01:00
Marc Gilleron
3ee3931824 Separated function to store into images only 2022-08-03 21:43:57 +01:00
Marc Gilleron
bde74f0785 Store final normals encoded instead of full vec3f, and copy into Image instead of using set_pixel 2022-08-03 21:31:29 +01:00
Marc Gilleron
6c0a1e4463 Missing ref 2022-08-03 21:05:26 +01:00
Marc Gilleron
9973ac5e3a Split into functions a bit 2022-08-03 19:31:24 +01:00
Marc Gilleron
adbe393440 Optimized triangle raycasts a bit 2022-08-03 18:49:46 +01:00
Marc Gilleron
14f841fd7f Merge branch 'master' into smooth_normalmaps 2022-08-03 00:04:11 +01:00
Marc Gilleron
f171628ad2 Added popout button to the graph editor to open it on a separate window 2022-08-02 22:14:33 +01:00
Marc Gilleron
f81e64dd14 Added pinning to voxel graph editor 2022-08-02 00:38:21 +01:00
Marc Gilleron
cff51fbe89 Unnecessary signal arguments 2022-08-02 00:35:13 +01:00
Marc Gilleron
fd54901700 Unused variable 2022-08-01 01:24:55 +01:00
Marc Gilleron
181601e011 Fix macro 2022-08-01 01:03:28 +01:00
Marc Gilleron
b53df948d0 Fix ambiguous call with float=64 2022-08-01 00:55:21 +01:00
Marc Gilleron
b1f4aee78b ResourceSaver::save arguments were swapped 2022-08-01 00:08:21 +01:00
Marc Gilleron
f160891b5d Callable::call was renamed callp 2022-08-01 00:07:51 +01:00
Marc Gilleron
ed21e3bdeb Binds arguments were removed from connect() 2022-08-01 00:07:20 +01:00
Marc Gilleron
ea65bb1ced Merge branch 'master' of https://github.com/Zylann/godot_voxel 2022-07-31 23:25:14 +01:00
Marc Gilleron
5330c946a5 Fix crash when modifying a VoxelGeneratorGraph with "live update" while no terrain node is selected 2022-07-31 23:24:33 +01:00
Marc Gilleron
bf6dc622b5 Comment 2022-07-31 23:20:27 +01:00
Marc Gilleron
2d757c7ece Moved distance normalmaps code to its own file 2022-07-31 23:04:36 +01:00
Marc Gilleron
0c3b103689 Improvements
- Project samples on triangles to make cells more seamless,
  instead of a box of samples on a quad. Requires 2x more samples.
- Don't sample when there is no triangle for a given pixel
- Dilate normalmaps to reduce artifacts on edge of triangles
- Moved math functions about triangles in their own file
2022-07-31 22:42:05 +01:00
Marc Gilleron
fcddf4da61 WIP normalmaps for Transvoxel.
Adds enough stuff to test the approach. It is not correct at the
moment, probably needs to project to triangles to make cells line up,
currently it's using planes. There might be incorrect coordinates too,
did that with bit of guessing. A grid-like pattern is also showing, so
might have to make tiles a bit larger to account for filtering.
2022-07-31 16:14:36 +01:00
Marc Gilleron
b5257f0f48 Fixed various previews not showing up
ImageTexture::create_from_image is now static, this was nasty...
2022-07-30 22:56:33 +01:00
Marc Gilleron
ae26c13d68 Added strength parameter for sculpting smooth voxels 2022-07-30 22:11:24 +01:00
Marc Gilleron
7b059dbe0b Added equivalent nodes optimization 2022-07-30 00:39:57 +01:00
Marc Gilleron
62e471b3d2 Add get_node_ids() helper method 2022-07-30 00:35:38 +01:00
Marc Gilleron
4221ae71c7 int => unsigned int 2022-07-30 00:34:30 +01:00
Marc Gilleron
bbfda51635 Fix can_connect() 2022-07-30 00:33:27 +01:00
Marc Gilleron
89e7c4e90c Document default connections 2022-07-29 21:30:22 +01:00
Marc Gilleron
d8b1e090f5 Macros 2022-07-29 21:30:07 +01:00
Marc
6f75baebde
Merge pull request #413 from aaronfranke/translated-local
Rename translated to translated_local
2022-07-29 01:17:24 +01:00
Aaron Franke
b570d1b5b6
Rename translated to translated_local 2022-07-28 18:38:33 -05:00
Marc Gilleron
d7a6b8aaab Added default input connections to some voxel graph nodes 2022-07-28 23:08:05 +01:00
Marc Gilleron
62ac840375 Fix release build 2022-07-24 14:25:40 +01:00
Marc Gilleron
35585af71b Merge branch 'master' of https://github.com/Zylann/godot_voxel 2022-07-24 04:35:01 +01:00
Marc Gilleron
d1b935fd99 Fix Control::PRESET_WIDE enum was renamed 2022-07-24 04:34:10 +01:00