mirror of
https://github.com/gpujs/gpu.js.git
synced 2026-01-25 16:08:02 +00:00
update documentation on Alpha
This commit is contained in:
parent
e5d51fd462
commit
3c2369bff2
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user