regl-project / multi-regl

Multiplex a regl instance across different DOM elements
https://regl-project.github.io/multi-regl/index.html
22 stars 7 forks source link

document.body cannot be a target #6

Open dy opened 6 years ago

dy commented 6 years ago

This code does not work:

const multiREGL = require('multi-regl')()

const regl = multiREGL(document.body)

regl.frame(() => {
  regl.clear({
    color: [1, 0, 0, 1],
    depth: 1
  })
})