Merge pull request #109186 from clayjohn/reflection-probe-size-update

Prompt editor restart when reflection probe size is updated
This commit is contained in:
Thaddeus Crews
2025-09-30 18:34:57 -05:00
6 changed files with 5 additions and 22 deletions

View File

@ -562,10 +562,7 @@ void LightStorage::reflection_probe_set_reflection_mask(RID p_probe, uint32_t p_
}
void LightStorage::reflection_probe_set_resolution(RID p_probe, int p_resolution) {
ReflectionProbe *reflection_probe = reflection_probe_owner.get_or_null(p_probe);
ERR_FAIL_NULL(reflection_probe);
reflection_probe->resolution = p_resolution;
WARN_PRINT_ONCE("reflection_probe_set_resolution is not available in Godot 4. ReflectionProbe size is configured in the project settings with the rendering/reflections/reflection_atlas/reflection_size setting.");
}
AABB LightStorage::reflection_probe_get_aabb(RID p_probe) const {

View File

@ -113,7 +113,6 @@ struct LightInstance {
struct ReflectionProbe {
RS::ReflectionProbeUpdateMode update_mode = RS::REFLECTION_PROBE_UPDATE_ONCE;
int resolution = 256;
float intensity = 1.0;
float blend_distance = 1.0;
RS::ReflectionProbeAmbientMode ambient_mode = RS::REFLECTION_PROBE_AMBIENT_ENVIRONMENT;