Skip to content

Define Wasm translucent surfaces as premultiplied alpha

Michael Migliore requested to merge michael.migliore/vtk:premultiplied into master

The difference is subtle but noticeable on the examples below.
The translucent parts bleeding on the background appear too dark on light background, and faded out on dark background (because it's multiplied an extra time by the alpha value).

Premultiplied alpha OFF (current master):

2024-06-18-101526_1374x1121

2024-06-18-101514_1323x1037

Premultiplied alpha ON (this branch):

2024-06-18-101557_1306x827

2024-06-18-101609_1327x815

Merge request reports