I looked at the lensflare addon and wanted to convert it to WebGPU.
But the question quickly came to my mind where WebGPU addons like Lensflare should be stored. In the same folder as all the WebGL addons with the post or prefix webgpu doesn’t make sense to me.
Since r167 there are basically 2 three.js
three.module.js //webgl
three.webgpu.js //webgpu
and everything that has to do with webgpu should be separated from webgl.
That’s why I’m wondering where all the addons in the jsm folder for webgl are best stored for webgpu in the future?
The thought occurred to me to imagine the two three.js worlds completely separate with their own folder structures. However, the developers have to decide whether this makes sense.
I think right now and forseeable future, they will all co-exist in the same directory? The addons already contains stuff from CSSRenderer, SVGRenderer, CanvasRenderer, WebGL1, and WebGL2… so it’s not a stretch to think WebGPU fits in there too.
of course that works. But is it meant to be that way? That’s the question that comes to mind.
With its new structure, r167 has taken a path that leads me to suspect that in the future the project want to have webgl and webgpu more separated.
The webgpu examples have all been adapted. A separate subfolder for webgl and webgpu would be more practical than attaching posts or prefixes to every addon. Having these subfolders everywhere is also possible, but it doesn’t seem like the best solution to me in the long term.
Maybe there are already plans and that’s why I thought I’d ask.
I didn’t know it will parse as a link and I am writing from my phone. I wanted to say that addons would probably best be placed on NPM. It was a bad joke.
Is NPM really this unpopular, that it doesn’t even register? It looks like www.npmjs.com is the proper url.