From 2233a0f023cc85b6c06aaf50407f22927cd81d69 Mon Sep 17 00:00:00 2001 From: Nathan Castle Date: Fri, 18 Nov 2022 15:34:25 -0800 Subject: [PATCH] Fix property mapping for MAUI --- src/ARToolkit.Maui/Handlers/ARSceneViewHandler.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/ARToolkit.Maui/Handlers/ARSceneViewHandler.cs b/src/ARToolkit.Maui/Handlers/ARSceneViewHandler.cs index 205260d89..e676e552c 100644 --- a/src/ARToolkit.Maui/Handlers/ARSceneViewHandler.cs +++ b/src/ARToolkit.Maui/Handlers/ARSceneViewHandler.cs @@ -183,7 +183,20 @@ public static void MapRenderVideoFeed(ARSceneViewHandler handler, IARSceneView a { #if !NETSTANDARD if (handler.PlatformView is ARToolkit.ARSceneView arview) + { arview.RenderVideoFeed = arSceneView.RenderVideoFeed; + if (arSceneView.RenderVideoFeed) + { + arSceneView.SpaceEffect = arview.SpaceEffect = SpaceEffect.None; + arSceneView.AtmosphereEffect = arview.AtmosphereEffect = AtmosphereEffect.None; + } + else + { + arSceneView.SpaceEffect = arview.SpaceEffect = SpaceEffect.Stars; + arSceneView.AtmosphereEffect = arview.AtmosphereEffect = AtmosphereEffect.HorizonOnly; + } + } + #endif }