Closed RobertGemmaJr closed 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 🌎
@eldu can you take a look at the shader code while Camilo is on vacation? Thank you!
Consolidating with other Blending changes to #131
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.