Skip to content

Viewports lesson #55

Description

@jbgitto

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.

Activity

Trott commented on Mar 3, 2015

@Trott

Looks like this is fixed in the master branch. It just hasn't been published to npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions