Merge pull request #56305 from Calinou/rename-lod-threshold
This commit is contained in:
commit
851fb16350
34 changed files with 132 additions and 132 deletions
|
|
@ -6880,11 +6880,11 @@ void RendererStorageRD::reflection_probe_set_resolution(RID p_probe, int p_resol
|
|||
reflection_probe->resolution = p_resolution;
|
||||
}
|
||||
|
||||
void RendererStorageRD::reflection_probe_set_lod_threshold(RID p_probe, float p_ratio) {
|
||||
void RendererStorageRD::reflection_probe_set_mesh_lod_threshold(RID p_probe, float p_ratio) {
|
||||
ReflectionProbe *reflection_probe = reflection_probe_owner.get_or_null(p_probe);
|
||||
ERR_FAIL_COND(!reflection_probe);
|
||||
|
||||
reflection_probe->lod_threshold = p_ratio;
|
||||
reflection_probe->mesh_lod_threshold = p_ratio;
|
||||
|
||||
reflection_probe->dependency.changed_notify(DEPENDENCY_CHANGED_REFLECTION_PROBE);
|
||||
}
|
||||
|
|
@ -6942,11 +6942,11 @@ float RendererStorageRD::reflection_probe_get_origin_max_distance(RID p_probe) c
|
|||
return reflection_probe->max_distance;
|
||||
}
|
||||
|
||||
float RendererStorageRD::reflection_probe_get_lod_threshold(RID p_probe) const {
|
||||
float RendererStorageRD::reflection_probe_get_mesh_lod_threshold(RID p_probe) const {
|
||||
const ReflectionProbe *reflection_probe = reflection_probe_owner.get_or_null(p_probe);
|
||||
ERR_FAIL_COND_V(!reflection_probe, 0);
|
||||
|
||||
return reflection_probe->lod_threshold;
|
||||
return reflection_probe->mesh_lod_threshold;
|
||||
}
|
||||
|
||||
int RendererStorageRD::reflection_probe_get_resolution(RID p_probe) const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue