Exposed missing warp functions

master
Marc Gilleron 2021-09-22 19:54:26 +01:00
parent 7c3226b904
commit ba8d9aad52
2 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,7 @@ Ongoing development - `master`
- General
- `VoxelTerrain`: added `get_data_block_size()`
- `VoxelToolTerrain`: added `for_each_voxel_metadata_in_area()` to quickly find all metadata in a box
- `FastNoiseLiteGradient`: exposed missing warp functions
- Added property to terrain nodes to configure collision margin
- Thread count is automatically determined from the number of concurrent threads the CPU supports
- Added project settings to configure thread count

View File

@ -181,6 +181,9 @@ void FastNoiseLiteGradient::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_rotation_type_3d", "type"), &FastNoiseLiteGradient::set_rotation_type_3d);
ClassDB::bind_method(D_METHOD("get_rotation_type_3d"), &FastNoiseLiteGradient::get_rotation_type_3d);
ClassDB::bind_method(D_METHOD("warp_2d", "position"), &FastNoiseLiteGradient::_b_warp_2d);
ClassDB::bind_method(D_METHOD("warp_3d", "position"), &FastNoiseLiteGradient::_b_warp_3d);
ADD_PROPERTY(PropertyInfo(Variant::INT, "noise_type", PROPERTY_HINT_ENUM,
"OpenSimplex2,OpenSimplex2Reduced,Value"),
"set_noise_type", "get_noise_type");