We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I try the examples in https://threejs.org/manual/#en/textures,but when I replace three.moudle.js to three.webgpu,js ,it doesn't woke. It looks like just like this:
when I use three.moudle.js it looks correct. :-) _
1.copy the code from https://threejs.org/manual/#en/textures 2.replace three form three.moudle.js to three.webgpu,js 3.replace the image
const scene = new THREE.Scene();
const boxWidth = 1; const boxHeight = 1; const boxDepth = 1; const geometry = new THREE.BoxGeometry(boxWidth, boxHeight, boxDepth);
const cubes = []; // just an array we can use to rotate the cubes const loader = new THREE.TextureLoader();
const materials = [ new THREE.MeshBasicMaterial({ map: loadColorTexture('xxx.jpg') }), new THREE.MeshBasicMaterial({ map: loadColorTexture('xxx.jpg') }), new THREE.MeshBasicMaterial({ map: loadColorTexture('xxx.jpg') }), new THREE.MeshBasicMaterial({ map: loadColorTexture('xxx.jpg') }), new THREE.MeshBasicMaterial({ map: loadColorTexture('xxx.jpg') }), new THREE.MeshBasicMaterial({ map: loadColorTexture('xxx.jpg') }), ]; const cube = new THREE.Mesh(geometry, materials); scene.add(cube);
No response
r168
The text was updated successfully, but these errors were encountered:
This should be fixed via #29278. Do you mind giving the current dev version a try?
Sorry, something went wrong.
Certainly, I'd be happy to have a try.
No branches or pull requests
Description
I try the examples in https://threejs.org/manual/#en/textures,but when I replace three.moudle.js to three.webgpu,js ,it doesn't woke. It looks like just like this:

when I use three.moudle.js it looks correct. :-)
_
Reproduction steps
1.copy the code from https://threejs.org/manual/#en/textures
2.replace three form three.moudle.js to three.webgpu,js
3.replace the image
Code
const scene = new THREE.Scene();
const boxWidth = 1;
const boxHeight = 1;
const boxDepth = 1;
const geometry = new THREE.BoxGeometry(boxWidth, boxHeight, boxDepth);
const cubes = []; // just an array we can use to rotate the cubes
const loader = new THREE.TextureLoader();
const materials = [
new THREE.MeshBasicMaterial({ map: loadColorTexture('xxx.jpg') }),
new THREE.MeshBasicMaterial({ map: loadColorTexture('xxx.jpg') }),
new THREE.MeshBasicMaterial({ map: loadColorTexture('xxx.jpg') }),
new THREE.MeshBasicMaterial({ map: loadColorTexture('xxx.jpg') }),
new THREE.MeshBasicMaterial({ map: loadColorTexture('xxx.jpg') }),
new THREE.MeshBasicMaterial({ map: loadColorTexture('xxx.jpg') }),
];
const cube = new THREE.Mesh(geometry, materials);
scene.add(cube);
Live example
Screenshots
No response
Version
r168
Device
No response
Browser
No response
OS
No response
The text was updated successfully, but these errors were encountered: