Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
224 changes: 0 additions & 224 deletions examples/jsm/webxr/XRButtonGPU.js

This file was deleted.

2 changes: 1 addition & 1 deletion examples/webgpu_xr_cubes.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import * as THREE from 'three';

import { BoxLineGeometry } from 'three/addons/geometries/BoxLineGeometry.js';
import { XRButton } from 'three/addons/webxr/XRButtonGPU.js';
import { XRButton } from 'three/addons/webxr/XRButton.js';
import { XRControllerModelFactory } from 'three/addons/webxr/XRControllerModelFactory.js';

const clock = new THREE.Clock();
Expand Down
23 changes: 0 additions & 23 deletions src/renderers/common/Renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2033,29 +2033,6 @@ class Renderer {

}

/**
* Ensures the renderer is XR compatible.
*
* @async
* @return {Promise} A Promise that resolve when the renderer is XR compatible.
*/
async makeXRCompatible() {

await this.backend.makeXRCompatible();

}

/**
* Sets the XR rendering destination.
*
* @param {WebGLFramebuffer} xrTarget - The XR target.
*/
setXRTarget( xrTarget ) {

this.backend.setXRTarget( xrTarget );

}

/**
* Sets the given render target. Calling this method means the renderer does not
* target the default framebuffer (meaning the canvas) anymore but a custom framebuffer.
Expand Down
15 changes: 10 additions & 5 deletions src/renderers/common/Textures.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,24 @@ class Textures extends DataMap {

//


const options = { sampleCount };

for ( let i = 0; i < textures.length; i ++ ) {
if ( ( renderTarget.isXRRenderTarget === true && renderTarget.hasExternalTextures === true ) === false ) {

for ( let i = 0; i < textures.length; i ++ ) {

const texture = textures[ i ];
const texture = textures[ i ];

if ( textureNeedsUpdate ) texture.needsUpdate = true;
if ( textureNeedsUpdate ) texture.needsUpdate = true;

this.updateTexture( texture, options );
this.updateTexture( texture, options );

}

}

if ( depthTexture ) {
if ( depthTexture && renderTarget.autoAllocateDepthBuffer !== false ) {

this.updateTexture( depthTexture, options );

Expand Down
Loading
Loading