You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right, setting it is quite straightforward, just doing
fullscreen: false,width: window.innerWidth
Now, to update it, I did something like this:
gl.resize=function(){this.width=window.innerWidth;// Updating the widththis.viewport(0,0,this.width,this.height);returnthis.updateUniforms();};
However it is quite choppy and doesn't update the width precisely. Only if I resize the window really slowly, it is more or less fine, but when doing it even a bit faster, it just doesn't fill the whole width.
Is there maybe another way to accomplish this?
The text was updated successfully, but these errors were encountered:
Right, setting it is quite straightforward, just doing
Now, to update it, I did something like this:
However it is quite choppy and doesn't update the width precisely. Only if I resize the window really slowly, it is more or less fine, but when doing it even a bit faster, it just doesn't fill the whole width.
Is there maybe another way to accomplish this?
The text was updated successfully, but these errors were encountered: