vega / vega-webgpu

WebGPU Renderer Extension for Vega
6 stars 2 forks source link

Z-Sort marks #2

Open lsh opened 3 years ago

lsh commented 3 years ago

Currently marks are unsorted in the Z-direction. Reference the implementaitno of visit in vega-scenegraph for a better understanding.

lsh commented 3 years ago

After looking through the way Vega does it it seems like maybe I should make a buffer for items with zindex and a buffer for items without zindex.

lsh commented 3 years ago

An alternative (and cheaper) solution is to sort the z using a the z value in [[builtin(position)]] (probably multiplied by an epsilon).