我正在使用这个图书馆" Zen Photon Garden"我在chrome上有一些问题(如果我调整画布大小):" Uncaught TypeError:this.Z32.slice不是函数rayworker-asm.js:461"
this.U32.set(this.Z32.slice(0, l >> 2), begin >> 2);
我发现切片,在这种情况下,它只有firefox支持,我该如何解决?
this.heap = new ArrayBuffer(0x800000);
this.F32 = new Float32Array(this.heap);
this.U32 = new Uint32Array(this.heap);
this.zeroes = new ArrayBuffer(0x10000);
this.Z32 = new Uint32Array(this.zeroes);