diff --git a/js/config.js b/js/config.js index 7f87111..fcc896c 100644 --- a/js/config.js +++ b/js/config.js @@ -76,6 +76,7 @@ const defaults = { resolution: 1, // An overall scale multiplier useHalfFloat: false, renderer: "webgpu", // The preferred web graphics API + useHoloplay: false, }; const versions = { @@ -229,6 +230,7 @@ const versions = { volumetric: true, forwardSpeed: 0, density: 3, + useHoloplay: true, }, }; versions.throwback = versions.operator; diff --git a/js/regl/lkgHelper.js b/js/regl/lkgHelper.js index fe0beab..b686d53 100644 --- a/js/regl/lkgHelper.js +++ b/js/regl/lkgHelper.js @@ -80,7 +80,10 @@ const interpretDevice = (device) => { }; }; -export default async (useRecordedDevice = false) => { +export default async (useHoloplay = false, useRecordedDevice = false) => { + if (!useHoloplay) { + return interpretDevice(null); + } const detectedDevice = await getDetectedDevice; if (detectedDevice == null && useRecordedDevice) { return interpretDevice(recordedDevice); diff --git a/js/regl/main.js b/js/regl/main.js index 14b6f67..2172784 100644 --- a/js/regl/main.js +++ b/js/regl/main.js @@ -59,7 +59,7 @@ export default async (canvas, config) => { optionalExtensions: ["EXT_color_buffer_half_float", "WEBGL_color_buffer_float", "OES_standard_derivatives"], }); - const lkg = await getLKG(true); + const lkg = await getLKG(config.useHoloplay, true); // All this takes place in a full screen quad. const fullScreenQuad = makeFullScreenQuad(regl);