Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        if (_menu.activeSelf)
        {
            _skyColorImage.color = _lightingManager.GetSkyColor();
            _sunColorImage.color = _lightingManager.GetSunColor();

            Vector3 skyIrr = _lightingManager.GetSkyIrradiance();
            Vector3 sunIrr = _lightingManager.GetSunIrradiance();


            _skyIrrRText.text = skyIrr.x.ToString("00.00");
            _skyIrrGText.text = skyIrr.y.ToString("00.00");
            _skyIrrBText.text = skyIrr.z.ToString("00.00");
            _sunIrrRText.text = sunIrr.x.ToString("00.00");
            _sunIrrGText.text = sunIrr.y.ToString("00.00");
            _sunIrrBText.text = sunIrr.z.ToString("00.00");

            SunPos sunPos = _lightingManager.GetSunPos();
            _sunDirAz.text  = sunPos.az.ToString("000.0");
            _sunDirZen.text = sunPos.zen.ToString("000.0");

            _skyNbrLightsText.text = _lightingManager.GetNbrSkyDomeLights().ToString();


            _arKitLightEstText.text   = _arkitLightEstimation.GetARKitLightEstimationIntensity().ToString();
            _arKitLightEstImage.color = _arkitLightEstimation.GetARKitLightEstimationColor();
        }
    }
Beispiel #2
0
 // Update is called once per frame
 void Update()
 {
     _sunColorScreen.SetColorAndIntensity(_lightingManager.GetSunColor(), _lightingManager.GetSunIntensity());
     _skyColorScreen.SetColorAndIntensity(_lightingManager.GetSkyColor(), _lightingManager.GetSkyIntensity());
 }