Skip to content Skip to sidebar Skip to footer

Unexpected Screen Clearing Webgl

Good day! I need a help with webgl! According to http://www.html5rocks.com/en/tutorials/webgl/webgl_fundamentals/#disqus_thread tutorial, I created simple demo of my problem: https

Solution 1:

it is because you are using gl.bufferData() which is actually replacing your scene's content.

You should instead use gl.bufferSubData().

check out this answer bufferData - usage parameter differences

Post a Comment for "Unexpected Screen Clearing Webgl"