The native implementation does not clear the GL framebuffer so you can overdraw a frame on top of the previous one using transparent colors.
On the other hand, the default behavior for WebGL context is to clear the buffer.
Add parameter preserveDrawingBuffer:true in WebGLContextAttributes to have a consistent behavior between both platforms.
The native implementation does not clear the GL framebuffer so you can overdraw a frame on top of the previous one using transparent colors. On the other hand, the default behavior for WebGL context is to clear the buffer. Add parameter
preserveDrawingBuffer:true
in WebGLContextAttributes to have a consistent behavior between both platforms.