1
0
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:
reduz
2016-12-24 16:23:30 -03:00
parent 3adb42e217
commit 0d4abf2aa3
8 changed files with 40 additions and 16 deletions

View File

@@ -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);
}