I am currently working on implementing volume rendering in WebGL using the Three.js library. While I have experience with pure WebGL, I'm facing challenges finding a similar approach in Three.js.
Here are the issues at hand:
1) How can I render the hidden back faces of a bounding box (in this case, a cube) to a framebuffer?
2) Is there a way to only draw the front face of the bounding box?
Thank you for any help in advance :-) I'm struggling to figure out how to achieve this with Three.js. If it's not possible, I will resort to using pure WebGL, although I prefer keeping my solution clean without mixing libraries.
Many thanks once again :-)