How does one go about using a alpha blending formula to achieve the src rgb color from the resultant of the 2 blended together
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Well, you can just reorder the alpha blending equation
Value = (1 − α) · Value0 + α · Value1
However, there are four variables in that equation: α, Value, Value0 and Value1. You need to know three of them to calculate the fourth. So in your case you know the resulting color, Value, the α and maybe Value0. You can then reorder the equation as follows:
−α · Value1 = (1 − α) · Value0 − Value
Value1 = (−1/α) · ((1 − α) · Value0 − Value)
That is, if I understood you correctly. Which might not be the case. You might want to clarify your question.