GreasedLine fully ported to WebGPU / WGSL

Hey everyone!

I’ve ported all GreasedLine shaders to WGSL. You can use all GreasedLine material types with WebGPU/WGSL. Material types docs

Please keep in mind that you must use RGBA texures with WebGPU when using your own color textures. You can find some examples here.

In case of issues do not hesitate to submit a bug report and tag me in the message.

Enjoy!

8 Likes

Thank you for your work :smile:. I found that when OIT is enabled, there is no color. And an error occurs when OIT is enabled in WebGPU mode.
PG:https://playground.babylonjs.com/#H1LRZ3#681

1 Like

OIT functionality doesn’t seem to be finalized, and I’m not sure I should report such issues. If it bothers you.

1 Like

I’ll add OIT support. Thanks for reporting!

1 Like

GRL OIT Support PR:

PG:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15966/merge/index.html#H1LRZ3#690

2 Likes