Just tried for fun to see what happens if I just replace webgl with webgpu renderer

Just tried for fun to see what happens if I just replace webgl with webgpu renderer

It actually works better then I though it would :joy:
Was expecting it to just fail really. But model loaded…
A bit dark, like lights dont work…

See I get 532 errors with
animationLoop.ts:97 AttributeNode: Attribute "normal" not found.
Maybe because i dont use normals/flatshading ?

If anyone have any hints/tips on going from webgl to webgpu then please tell me.
Is there any roadmap for threejs and webgpu?

Anyways, really looking forward to see what webgpu brings to threejs :smile:

1 Like

Gave this a new try and made some adjustments to light.
By updating to v155 it started displaying better. :heart_eyes:

But see its still complaining about on each mesh…
AttributeNode: Attribute "normal" not found.

Maybe this is a bug when using webgpu renderer and MeshStandardMaterial/flatshading = true?

Also, see we dont have readRenderTargetPixels anymore, anyone know what to use instead? use to get color/id for my gpu picking.

1 Like

btw…
if I use MeshPhongMaterial instead of MeshStandardMaterial I do not get the error AttributeNode: Attribute "normal" not found.