Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.32

124 bytes added, 11:01, 17 September 2018
no edit summary
D .. background sRGB color, we assume middle gray #808080
b .. recomputed alpha
 
The old blending expression:
OLD = S * a + D * (1 - a)
 
The new blending expression:
 
NEW = sRGB(rgb(S) * b + rgb(D) * (1 - b))
 
Alpha which would result in the same final value after blend:
b = (rgb(OLD) - rgb(D)) / (rgb(S) - rgb(D))

Navigation menu