Remove unused anisotropy setter/getter methods in VoxelGI

These methods weren't exposed to the scripting API.

Anisotropy was used in earlier iterations of VoxelGI, but it was
removed as it was too expensive.
This commit is contained in:
Hugo Locurcio 2022-07-06 02:40:29 +02:00
parent 1b057e18f2
commit c9037a8d2c
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
6 changed files with 0 additions and 34 deletions

View File

@ -126,13 +126,6 @@ bool GI::voxel_gi_is_using_two_bounces(RID p_voxel_gi) const {
return false;
}
void GI::voxel_gi_set_anisotropy_strength(RID p_voxel_gi, float p_strength) {
}
float GI::voxel_gi_get_anisotropy_strength(RID p_voxel_gi) const {
return 0;
}
uint32_t GI::voxel_gi_get_version(RID p_voxel_gi) const {
return 0;
}

View File

@ -86,9 +86,6 @@ public:
virtual void voxel_gi_set_use_two_bounces(RID p_voxel_gi, bool p_enable) override;
virtual bool voxel_gi_is_using_two_bounces(RID p_voxel_gi) const override;
virtual void voxel_gi_set_anisotropy_strength(RID p_voxel_gi, float p_strength) override;
virtual float voxel_gi_get_anisotropy_strength(RID p_voxel_gi) const override;
virtual uint32_t voxel_gi_get_version(RID p_voxel_gi) const override;
};

View File

@ -74,9 +74,6 @@ public:
virtual void voxel_gi_set_use_two_bounces(RID p_voxel_gi, bool p_enable) override {}
virtual bool voxel_gi_is_using_two_bounces(RID p_voxel_gi) const override { return false; }
virtual void voxel_gi_set_anisotropy_strength(RID p_voxel_gi, float p_strength) override {}
virtual float voxel_gi_get_anisotropy_strength(RID p_voxel_gi) const override { return 0; }
virtual uint32_t voxel_gi_get_version(RID p_voxel_gi) const override { return 0; }
};

View File

@ -76,9 +76,6 @@ public:
virtual void voxel_gi_set_use_two_bounces(RID p_voxel_gi, bool p_enable) = 0;
virtual bool voxel_gi_is_using_two_bounces(RID p_voxel_gi) const = 0;
virtual void voxel_gi_set_anisotropy_strength(RID p_voxel_gi, float p_strength) = 0;
virtual float voxel_gi_get_anisotropy_strength(RID p_voxel_gi) const = 0;
virtual uint32_t voxel_gi_get_version(RID p_probe) const = 0;
};

View File

@ -312,19 +312,6 @@ float GI::voxel_gi_get_normal_bias(RID p_voxel_gi) const {
return voxel_gi->normal_bias;
}
void GI::voxel_gi_set_anisotropy_strength(RID p_voxel_gi, float p_strength) {
VoxelGI *voxel_gi = voxel_gi_owner.get_or_null(p_voxel_gi);
ERR_FAIL_COND(!voxel_gi);
voxel_gi->anisotropy_strength = p_strength;
}
float GI::voxel_gi_get_anisotropy_strength(RID p_voxel_gi) const {
VoxelGI *voxel_gi = voxel_gi_owner.get_or_null(p_voxel_gi);
ERR_FAIL_COND_V(!voxel_gi, 0);
return voxel_gi->anisotropy_strength;
}
void GI::voxel_gi_set_interior(RID p_voxel_gi, bool p_enable) {
VoxelGI *voxel_gi = voxel_gi_owner.get_or_null(p_voxel_gi);
ERR_FAIL_COND(!voxel_gi);

View File

@ -84,8 +84,6 @@ public:
bool interior = false;
bool use_two_bounces = false;
float anisotropy_strength = 0.5;
uint32_t version = 1;
uint32_t data_version = 1;
@ -418,9 +416,6 @@ public:
virtual void voxel_gi_set_use_two_bounces(RID p_voxel_gi, bool p_enable) override;
virtual bool voxel_gi_is_using_two_bounces(RID p_voxel_gi) const override;
virtual void voxel_gi_set_anisotropy_strength(RID p_voxel_gi, float p_strength) override;
virtual float voxel_gi_get_anisotropy_strength(RID p_voxel_gi) const override;
virtual uint32_t voxel_gi_get_version(RID p_probe) const override;
uint32_t voxel_gi_get_data_version(RID p_probe);