Exemplo n.º 1
0
            static public bool CameraSettings(LightingMainBuffer2D buffer)
            {
                LightingManager2D manager = LightingManager2D.Get();
                int settingsID            = buffer.cameraSettings.id;

                if (settingsID >= manager.cameraSettings.Length)
                {
                    return(false);
                }

                CameraSettings cameraSetting = manager.cameraSettings[settingsID];

                if (cameraSetting.Equals(buffer.cameraSettings) == false)
                {
                    return(false);
                }

                buffer.cameraSettings.renderMode = cameraSetting.renderMode;

                return(true);
            }