diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2022-08-08 10:18:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-08 10:18:11 +0200 |
| commit | bc81c02fe177ab3c69a3ec9bfc0c9a6e90bde0bc (patch) | |
| tree | dfa1951882328139380ea29ed0769b937d3dec90 /scene/3d/gpu_particles_collision_3d.h | |
| parent | 862da78eed6d991cda00be91c6e0576f13c952b7 (diff) | |
| parent | 32973094f55c3c610eed100dc28f7fffaac7e444 (diff) | |
Merge pull request #62571 from Calinou/gpuparticlescollisionsdf3d-add-bake-mask
Diffstat (limited to 'scene/3d/gpu_particles_collision_3d.h')
| -rw-r--r-- | scene/3d/gpu_particles_collision_3d.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scene/3d/gpu_particles_collision_3d.h b/scene/3d/gpu_particles_collision_3d.h index 4b2cb930fa..712bd015ff 100644 --- a/scene/3d/gpu_particles_collision_3d.h +++ b/scene/3d/gpu_particles_collision_3d.h @@ -110,6 +110,7 @@ public: private: Vector3 extents = Vector3(1, 1, 1); Resolution resolution = RESOLUTION_64; + uint32_t bake_mask = 0xFFFFFFFF; Ref<Texture3D> texture; float thickness = 1.0; @@ -161,6 +162,8 @@ protected: static void _bind_methods(); public: + virtual TypedArray<String> get_configuration_warnings() const override; + void set_thickness(float p_thickness); float get_thickness() const; @@ -170,6 +173,12 @@ public: void set_resolution(Resolution p_resolution); Resolution get_resolution() const; + void set_bake_mask(uint32_t p_mask); + uint32_t get_bake_mask() const; + + void set_bake_mask_value(int p_layer_number, bool p_enable); + bool get_bake_mask_value(int p_layer_number) const; + void set_texture(const Ref<Texture3D> &p_texture); Ref<Texture3D> get_texture() const; |