public static void ComputeCameraSettingsFromProbeSettings( ProbeSettings settings, ProbeCapturePositionSettings position, out CameraSettings cameraSettings, out CameraPositionSettings cameraPositionSettings, float referenceFieldOfView = 90 ) { // Copy settings cameraSettings = settings.camera; cameraPositionSettings = CameraPositionSettings.@default; // Update settings ProbeSettingsUtilities.ApplySettings( ref settings, ref position, ref cameraSettings, ref cameraPositionSettings, referenceFieldOfView ); }
public static void ComputeCameraSettingsFromProbeSettings( ProbeSettings settings, ProbeCapturePositionSettings position, out CameraSettings cameraSettings, out CameraPositionSettings cameraPositionSettings, ulong overrideSceneCullingMask, float referenceFieldOfView = 90 ) { // Copy settings cameraSettings = settings.cameraSettings; cameraPositionSettings = CameraPositionSettings.@default; // Update settings ProbeSettingsUtilities.ApplySettings( ref settings, ref position, ref cameraSettings, ref cameraPositionSettings, referenceFieldOfView ); cameraSettings.culling.sceneCullingMaskOverride = overrideSceneCullingMask; }