update documentation on Alpha

This commit is contained in:
Robert Plummer 2018-02-25 19:36:26 -05:00
parent e5d51fd462
commit 3c2369bff2

View File

@ -206,7 +206,7 @@ Note: To animate the rendering, use `requestAnimationFrame` instead of `setTimeo
Currently, if you need alpha do something like enabling `premultipliedAlpha` with your own gl context:
```js
const canvas = DOM.canvas(500, 500);
const gl = canvas.getContext('webgl', { premultipliedAlpha: false });
const gl = canvas.getContext('webgl2', { premultipliedAlpha: false });
const gpu = new GPU({
canvas,