#ifndef VOXEL_GENERATOR_NOISE_2D_H #define VOXEL_GENERATOR_NOISE_2D_H #include "voxel_generator_heightmap.h" #include class VoxelGeneratorNoise2D : public VoxelGeneratorHeightmap { GDCLASS(VoxelGeneratorNoise2D, VoxelGeneratorHeightmap) public: VoxelGeneratorNoise2D(); void set_noise(Ref noise); Ref get_noise() const; void set_curve(Ref curve); Ref get_curve() const; void generate_block(VoxelBlockRequest &input) override; private: static void _bind_methods(); private: Ref _noise; Ref _curve; }; #endif // VOXEL_GENERATOR_NOISE_2D_H