Closed 0b5vr closed 4 months ago
The failing test says Cannot find module 'three/webgpu' or its corresponding type declarations.
.
It's an expected result, should be fixed once we import r167
r167 just released! looking forward to 3.0 release
So we will rename exports in another PR?
No, we're going to go @pixiv/three-vrm/nodes
as is instead of renaming it to @pixiv/three-vrm/webgpu
.
Naming it @pixiv/three-vrm/webgpu
makes users misunderstand that the export includes the entire library with NodeMaterial stuff, considering how Three.js exports three/webgpu
.
This PR adapts usage of WebGPU stuff to the r167 way.
import WebGPU / NodeMaterial stuff from
three/webgpu
. See: https://github.com/mrdoob/three.js/pull/28650Three.js r167 is not released yet!I tested the behavior by usingyarn link
onthree
and@types/three
.importmaps for Three.js in webgpu examples are temporarily replaced to node_modules, please change them back before merging.This PR also bumps Three.js to r167. Several changes are made even outside the WebGPU scope in order to follow r167 changes.
MToonNodeMaterial now requires r167 or higher. The main WebGL module should still work in r137-r166.