Skip to content

Commit

Permalink
[VisionGlass] Do not draw the environment (skybox)
Browse files Browse the repository at this point in the history
We could completely prevent the environment from rendering by enabling
passthrough at startup in the settings. We do the same for other
see-through devices like the Lenovo A3. This is not a "real"
passthrough as we aren't showing the real world by getting a video
stream from a camera. That's because we don't need it as the device
is not fully immersive but rather an AR device.

Current Wolvic's code defaults to not rendering the skybox if
passthrough is enabled and there is no passthrough layer.
  • Loading branch information
svillar committed Feb 16, 2024
1 parent 6d0f1af commit 1a3f0ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public void setSystemRootCAEnabled(boolean isEnabled) {
}

public static boolean shouldStartWithPassthrougEnabled() {
return DeviceType.getType() == DeviceType.LenovoA3;
return DeviceType.getType() == DeviceType.LenovoA3 || DeviceType.getType() == DeviceType.VisionGlass;
}

public boolean isStartWithPassthroughEnabled() {
Expand Down

0 comments on commit 1a3f0ec

Please sign in to comment.