While working in Three.js WebGLRenderer, I understand that using context.clearRect()
requires a canvas and other elements. However, my question is: How can I achieve the same functionality as clearRect in Three.js WebGLRenderer?
In my game, a JSON model is constantly moving, with each position being drawn. This results in all previous positions also being displayed.
Any suggestions on how to solve this issue? :)