yt-project / yt_idv

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

Texture offset fix #27

Closed chrishavlin closed 3 years ago

chrishavlin commented 3 years ago

This adds a function to manually return the offset texture position for sampling textures in the volume rendering fragment shaders. Fixes https://github.com/yt-project/yt_idv/issues/25 in which textureOffset was causing a compilation error on some systems.

Some screenshots of the max intensity and projection volume rendering for the amr and octree examples for reference:

amr_max amr_proj oct_max oct_proj

matthewturk commented 3 years ago

Ah, good news, the octree is still broken. :-) Looks good to me.