You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
fixed a horrible bug on Windows AMD, scenes saved until now in this branch
are no longer valid :(
This commit is contained in:
@@ -2699,7 +2699,7 @@ void VisualServerScene::_bake_gi_probe_light(const GIProbeDataHeader *header,con
|
||||
continue; // too far away
|
||||
|
||||
float dt = CLAMP((d+distance_adv)/local_radius,0,1);
|
||||
att*= pow(1.0-dt,light_cache.attenuation);
|
||||
att*= powf(1.0-dt,light_cache.attenuation);
|
||||
}
|
||||
|
||||
|
||||
@@ -2710,7 +2710,7 @@ void VisualServerScene::_bake_gi_probe_light(const GIProbeDataHeader *header,con
|
||||
continue;
|
||||
|
||||
float d = CLAMP(angle/light_cache.spot_angle,1,0);
|
||||
att*= pow(1.0-d,light_cache.spot_attenuation);
|
||||
att*= powf(1.0-d,light_cache.spot_attenuation);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user