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
Sorry if I am missing something but it appears that the top and left parameters described in the viewport function for the viewports lesson are the wrong way around.
The lesson describes the parameters as
gl.viewport(top, left, width, height)
The spec describes it as gl.viewport(x, y, width, height)
If the correct parameter order were gl.viewport(top, left, width, height) as described in the lesson then the solution would be gl.viewport(0, width/2, width/2, height) and not the accepted (and working) solution of gl.viewport(width/2, 0, width/2, height) to draw the bunny on the right hand side of the screen.
The parameters should be described as gl.viewport(left, top, width, height) in the lesson.
The text was updated successfully, but these errors were encountered:
Hi,
Great course, enjoying it :)
Sorry if I am missing something but it appears that the top and left parameters described in the viewport function for the viewports lesson are the wrong way around.
The lesson describes the parameters as
gl.viewport(top, left, width, height)
The spec describes it as gl.viewport(x, y, width, height)
If the correct parameter order were gl.viewport(top, left, width, height) as described in the lesson then the solution would be gl.viewport(0, width/2, width/2, height) and not the accepted (and working) solution of gl.viewport(width/2, 0, width/2, height) to draw the bunny on the right hand side of the screen.
The parameters should be described as gl.viewport(left, top, width, height) in the lesson.
The text was updated successfully, but these errors were encountered: