Load glb models in WebGPU

It is the goal that most parts of the scene graph will work in both renderers. Exceptions will be custom material definitions via ShaderMaterial, RawShaderMaterial and onBeforeCompile(). Also specific 3D object types from the addons folder like Water or Sky are WebGL specific and won’t work with WebGPU.

I’m trying to run our project on WebGPU, right now there is already progress that GLBs are displayed, but for some reason it swears at some buffer attributes, these buffer attributes work on WebGL, which are created by drawing on a geoman-leaflet. Yes, we have custom materials in the project, and we use Sky and Water, but now I’m trying without them.

I haven’t checked this myself, but’s possible that support for quantized and interleaved vertex attributes might still be incomplete in THREE.WebGPURenderer. Some glTF files use those features. If you run into issues, feel free to report them as bugs (with the affected .glb model).

1 Like