private static void SetupCamera() { if (m_previewRenderCamera) { cameraSetup.GetSetup(m_previewRenderCamera); renderCamera = m_previewRenderCamera; renderCamera.nearClipPlane = 0.01f; } else { renderCamera = InternalCamera; } var hdAddtData = renderCamera.GetComponent <HDAdditionalCameraData>(); if (hdAddtData != null) { hdAddtData.backgroundColorHDR = m_backgroundColor; hdAddtData.clearColorMode = HDAdditionalCameraData.ClearColorMode.Sky; } else { renderCamera.backgroundColor = m_backgroundColor; renderCamera.clearFlags = m_backgroundColor.a < 1f ? CameraClearFlags.Depth : CameraClearFlags.Color; } renderCamera.orthographic = m_orthographicMode; }
private static void SetupCamera() { if (m_previewRenderCamera) { cameraSetup.GetSetup(m_previewRenderCamera); renderCamera = m_previewRenderCamera; renderCamera.nearClipPlane = 0.01f; } else { renderCamera = InternalCamera; } renderCamera.backgroundColor = m_backgroundColor; renderCamera.orthographic = m_orthographicMode; renderCamera.clearFlags = m_backgroundColor.a < 1f ? CameraClearFlags.Depth : CameraClearFlags.Color; }
private static void SetupCamera() { if (m_previewRenderCamera != null && !m_previewRenderCamera.Equals(null)) { cameraSetup.GetSetup(m_previewRenderCamera); renderCamera = m_previewRenderCamera; renderCamera.nearClipPlane = 0.01f; } else { renderCamera = InternalCamera; } renderCamera.backgroundColor = m_backgroundColor; renderCamera.orthographic = true; renderCamera.clearFlags = BackgroundColor.a < 1 ? CameraClearFlags.Depth : CameraClearFlags.Color; }
private static void SetupCamera() { if (PreviewRenderCamera != null && !PreviewRenderCamera.Equals(null)) { cameraSetup.GetSetup(PreviewRenderCamera); renderCamera = PreviewRenderCamera; renderCamera.nearClipPlane = 0.01f; } else { renderCamera = InternalCamera; } renderCamera.scene = m_Scene; renderCamera.backgroundColor = BackgroundColor; renderCamera.orthographic = OrthographicMode; renderCamera.clearFlags = TransparentBackground ? CameraClearFlags.Depth : CameraClearFlags.Color; }