浏览代码

Fix #14429 GIProbe does not work with SpotLights

Przemyslaw Czarnota 7 年之前
父节点
当前提交
c3c1d119ec
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      servers/visual/visual_server_scene.cpp

+ 1 - 1
servers/visual/visual_server_scene.cpp

@@ -2283,7 +2283,7 @@ void VisualServerScene::_bake_gi_probe_light(const GIProbeDataHeader *header, co
 					if (angle > light_cache.spot_angle)
 						continue;
 
-					float d = CLAMP(angle / light_cache.spot_angle, 1, 0);
+					float d = CLAMP(angle / light_cache.spot_angle, 0, 1);
 					att *= powf(1.0 - d, light_cache.spot_attenuation);
 				}