yt-project / yt_idv

Interactive volume rendering for yt
Other
9 stars 6 forks source link

Enable geometry shaders #3

Closed matthewturk closed 3 years ago

matthewturk commented 3 years ago

This adds the ability to use geometry shaders. First implemented was a "grid outline" shader, which displays (similar to blocks and boxes) the grid positions. This will reduce the amount of data we need to push to the GPU and store there (but not by an enormous amount) for grids. The real improvement will be when using particles, as we'll be able to emit vertices for particles based on calculations done on the GPU, rather than needing to push them in initially.