There are a lot of useful glsl shaders we can use in examples/jsm/shaders. However, I have not seen a way to use these shaders in a WebGPURenderer.
Will these shaders be eventually translated to the NodeMaterial system to be available in both glsl and wgsl ?
There is no guarantee for that.
Certain things will be implemented differently e.g. some post processing passes will hopefully use MRT right from the beginning. This will require fundamental changes to the shader implementation.
any updates on this?
It works the other way now, you can use TSL in the WebGL renderer.
Yes, but it’s a manual/community effort, not automatic
The examples/jsm/shaders/ directory contains legacy GLSL-only shaders (things like HalftoneShader, DotScreenShader, ToonShader, etc.). These are not automatically ported to TSL/NodeMaterial. There’s no official migration script , the community and core contributors are doing it incrementally.
I tried to follow a good article on threejsroadmap, but I failed in converting attributes, however if professional programmers handle this transpiler, it’ll be a smooth step.