Fix clouds2d: create own canvas element
The 2D WebGL renderer now creates its own <canvas> overlay inside the target element, instead of expecting the target to already be a canvas. This fixes 'canvas.getContext is not a function' when the target is a <div>.
This commit is contained in:
1 parent
e8df75eebc
commit
c6764fd534
4 files changed
+77
-63