brown-ccv / react-volume-viewer

Volume Viewer package for react based websites
MIT License
0 stars 0 forks source link

refactor fragment shader #102

Closed RobertGemmaJr closed 2 years ago

RobertGemmaJr commented 2 years ago

Some more general refactoring of the shader code. Includes some changes made in preparation for blending models in the shader but we're no longer going that direction.

I undid the modelData struct so code is now refactored in a way that's logical for the THREE.js blending we're now going to do. I figure it's best to get these changes in now while it's relatively small, working on the next steps in another branch

github-actions[bot] commented 2 years ago

Visit the preview URL for this PR (updated for commit 4f6de34):

https://volume-viewer--pr102-shader-mult-uniforms-1doa5n42.web.app

(expires Wed, 18 May 2022 13:59:47 GMT)

🔥 via Firebase Hosting GitHub Action 🌎