Clarify draw mode comments

This commit is contained in:
adroitwhiz 2020-03-26 23:01:18 -04:00
parent 90b8f15d8c
commit a427461467

View File

@ -154,12 +154,12 @@ ShaderManager.EFFECTS = Object.keys(ShaderManager.EFFECT_INFO);
*/
ShaderManager.DRAW_MODE = {
/**
* Draw normally.
* Draw normally. Its output will use premultiplied alpha.
*/
default: 'default',
/**
* Un-premultiply alpha. Useful for reading pixels from GL into an ImageData object.
* Draw with non-premultiplied alpha. Useful for reading pixels from GL into an ImageData object.
*/
straightAlpha: 'straightAlpha',