yutannihilation / wgpugd

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

Clipping #8

Closed yutannihilation closed 2 years ago

yutannihilation commented 2 years ago

I thought clipping can be implemented by utilizing stencil buffer, but it means it takes more than one pass. So, probably I need to store the clipping information on uniform and reference it at the vertex shader stage.

yutannihilation commented 2 years ago

But probably I still need stencil buffer when applying posteffects?