Webgl / clarify premultiplied alpha handling

By default, alpha premultiplying should be done by the initial rendering
(eg quads) and not the final post processing pass.

The default post processing pass expects premultiplied color values and
will not do this operation itself.
This commit is contained in:
Olivier Guyot
2019-04-02 22:12:45 +02:00
parent b955579a9c
commit c6a859d1ed
3 changed files with 5 additions and 5 deletions

View File

@@ -110,8 +110,7 @@ const FRAGMENT_SHADER = `
*
* The following uniform is used for the main texture: `u_texture`.
*
* Please note that the main shader output should have premultiplied alpha, otherwise the colors will be blended
* additively.
* Please note that the main shader output should have premultiplied alpha, otherwise visual anomalies may occur.
*
* Points are rendered as quads with the following structure:
*