brown-ccv / react-volume-viewer

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

Feat: Average Blending #116

Closed RobertGemmaJr closed 2 years ago

RobertGemmaJr commented 2 years ago

Adds logic for blending the average of each model.

The GLSL mix() function mixes based on a percentage (0 - 1) of the two inputs. The ratio of the first input (v_sample.a) to the total (v_sample.a + m_sample.a) yields that percentage.

github-actions[bot] commented 2 years ago

Visit the preview URL for this PR (updated for commit 8c48de0):

https://volume-viewer--pr116-blending-average-vyslnjln.web.app

(expires Wed, 22 Jun 2022 18:38:04 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

RobertGemmaJr commented 2 years ago

@eldu can you take a look at the shader code while Camilo is on vacation? Thank you!

RobertGemmaJr commented 2 years ago

Consolidating with other Blending changes to #131