This code change is meant to accompany #163 , which still has a bug that depends on being fixed in zarr.js.
Several improvements in this PR:
Single-slice rendering was a bit too dim. When you switch modes, the colors were really muted. This was because of remnants of the volumetric shader still in the single-slice shader altering the alpha value. I simplified the single slice shader considerably.
The z slider was initialized to 0 even though the volume is initialized to the middle slice. Slider now inits to middle value.
Add z+1 and z-1 buttons to test caching when chunks consist of more than one slice
Remember pathtrace vs raymarch when switching between z and 3d mode.
This code change is meant to accompany #163 , which still has a bug that depends on being fixed in zarr.js.
Several improvements in this PR: