@needle-tools/three 0.169.3 → 0.169.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/three.cjs +363 -359
- package/build/three.module.js +363 -359
- package/build/three.module.min.js +1 -1
- package/build/three.webgpu.js +313 -313
- package/build/three.webgpu.min.js +1 -1
- package/build/three.webgpu.nodes.js +313 -313
- package/build/three.webgpu.nodes.min.js +1 -1
- package/package.json +1 -1
- package/src/renderers/webxr/WebXRManager.js +5 -1
package/package.json
CHANGED
|
@@ -281,7 +281,11 @@ class WebXRManager extends EventDispatcher {
|
|
|
281
281
|
currentPixelRatio = renderer.getPixelRatio();
|
|
282
282
|
renderer.getSize( currentSize );
|
|
283
283
|
|
|
284
|
-
|
|
284
|
+
// Check that the browser implements the necessary APIs to use an
|
|
285
|
+
// XRProjectionLayer rather than an XRWebGLLayer
|
|
286
|
+
const useLayers = typeof XRWebGLBinding !== 'undefined' && 'createProjectionLayer' in XRWebGLBinding.prototype;
|
|
287
|
+
|
|
288
|
+
if ( ! useLayers ) {
|
|
285
289
|
|
|
286
290
|
const layerInit = {
|
|
287
291
|
antialias: attributes.antialias,
|