yutannihilation / wgpugd

A WebGPU Graphics Device for R
https://yutannihilation.github.io/wgpugd/
Other
45 stars 3 forks source link

Transparent objects #30

Closed yutannihilation closed 2 years ago

yutannihilation commented 2 years ago

The left one is correct, and the right one is incorrect in that the rects ignore alpha value.

image

yutannihilation commented 2 years ago

Maybe I simply cannot draw transparent objects among multiple calls?

yutannihilation commented 2 years ago

Getting closer. Probably I should not share a depth buffer among multiple draw calls (draw sequentially instead?).

image