Optimizes shadows by disabling them on this light source while it's within the given radius around the camera.
См. определение в файле ScriptedLightBase.c строка 564
565 {
567 {
568 float distance_to_camera = vector.Distance(
GetPosition(),
GetGame().GetCurrentCameraPosition() );
569
571 {
572 SetCastShadow(false);
573 }
574 else
575 {
576 SetCastShadow(true);
577 }
578 }
579 }
float m_OptimizeShadowsRadius
proto native CGame GetGame()
class JsonUndergroundAreaTriggerData GetPosition
Перекрестные ссылки vector::Distance(), GetGame(), GetPosition и m_OptimizeShadowsRadius.
Используется в EOnFrame().