jonmmease / avenger

Experimental Vega visualization renderer in Rust using wgpu
BSD 3-Clause "New" or "Revised" License
25 stars 1 forks source link

Handle group origin calculations in shader logic #38

Closed jonmmease closed 9 months ago

jonmmease commented 9 months ago

Previously, group offsets were applied when creating the sg2d scene graph from vega. Now, the group offsets are stored in the sg2d scene graph and applied by the wgpu renderer.

The offset and group size are now passed into the shaders. Clipping isn't performed yet, but this is the info that will be needed in the shader to perform clipping.