Skip to content

Commit

Permalink
Fix property mapping for MAUI
Browse files Browse the repository at this point in the history
  • Loading branch information
nCastle1 committed Nov 18, 2022
1 parent be0f708 commit 424bb37
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/ARToolkit.Maui/Handlers/ARSceneViewHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 424bb37

Please sign in to comment.