Skip to content

Commit

Permalink
fix: copy culling stuff from player camera, potentially fixes daydream
Browse files Browse the repository at this point in the history
  • Loading branch information
Picalines committed Jul 11, 2024
1 parent 59fd3c1 commit 8e7dc46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OuterScout.Application/Extensions/OWCameraExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public static OWCamera CopyTo(
newOWCamera.useViewmodels = sourceOWCamera.useViewmodels;
newOWCamera.farCameraDistance = sourceOWCamera.farCameraDistance;
newOWCamera.useFarCamera = sourceOWCamera.useFarCamera;
newOWCamera.cullingMask = sourceOWCamera.cullingMask;
newOWCamera.mainCamera.layerCullDistances = sourceOWCamera.mainCamera.layerCullDistances;
newOWCamera.mainCamera.layerCullSpherical = sourceOWCamera.mainCamera.layerCullSpherical;

if (copyPostProcessing)
{
Expand Down

0 comments on commit 8e7dc46

Please sign in to comment.