Ejemplo n.º 1
0
    public void RefreshEnvironment()
    {
        var rs = gmap.GetCurrentSector();

        if (currentEnvironment != rs.environment)
        {
            currentEnvironment = rs.environment;
            environmentChangingEvent(currentEnvironment);
        }
        float s  = rs.GetVisualSaturationValue();
        float li = BASIC_SUN_INTENSITY * currentEnvironment.lightIntensityMultiplier * s;

        SetLightParameters(li, s);
        positionChanged = false;
    }