Merge pull request #99958 from lander-vr/reflection-probe-blend-property

Add Blend Distance property to ReflectionProbe
This commit is contained in:
Thaddeus Crews 2024-12-12 16:13:32 -06:00
commit 7c015a768f
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
18 changed files with 128 additions and 10 deletions

View file

@ -471,6 +471,13 @@ void LightStorage::reflection_probe_set_intensity(RID p_probe, float p_intensity
reflection_probe->intensity = p_intensity;
}
void LightStorage::reflection_probe_set_blend_distance(RID p_probe, float p_blend_distance) {
ReflectionProbe *reflection_probe = reflection_probe_owner.get_or_null(p_probe);
ERR_FAIL_NULL(reflection_probe);
reflection_probe->blend_distance = p_blend_distance;
}
void LightStorage::reflection_probe_set_ambient_mode(RID p_probe, RS::ReflectionProbeAmbientMode p_mode) {
ReflectionProbe *reflection_probe = reflection_probe_owner.get_or_null(p_probe);
ERR_FAIL_NULL(reflection_probe);