예제 #1
0
        public void ApplyInnerCameras(Camera[] cameras, bool front)
        {
            var currentDepth = this.workCamera.depth;
            var depthStep    = WindowSystem.GetDepthStep() * 0.5f;
            var camerasCount = cameras.Length;

            var innerStep = depthStep / camerasCount;

            for (int i = 0; i < camerasCount; ++i)
            {
                cameras[i].orthographicSize = this.workCamera.orthographicSize;
                cameras[i].depth            = currentDepth + innerStep * (i + 1) * (front == true ? 1f : -1f);
            }
        }