Multiplicative Blending

We obtain multiplicative blending by writing the following:

gl.blendFunc(gl.DST_COLOR, gl.ZERO);

This will be reflected in the blending equation as the following:

color = S * D + D * 0.0;
color = S * D;

The result will always be a darker blending.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.162.179