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 authored and mstefarov committed Feb 2, 2023
1 parent 1b67536 commit 2233a0f
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 2233a0f

Please sign in to comment.