Skip to content

Commit

Permalink
Added example of how to setup the viewport array.
Browse files Browse the repository at this point in the history
  • Loading branch information
bringhurst committed Jan 24, 2011
1 parent a4fa269 commit 5fbe96f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -6,6 +6,11 @@ This is a port of the usual gluUnProject function to javascript for use in WebGL
Simple Example
--------------

var viewportArray = [
viewportOriginX, viewportOriginY, viewportWidth, viewportHeight
];

// The results of the operation will be stored in this array.
var modelPointArrayResults = [];

var success = GLU.unProject(
Expand Down

0 comments on commit 5fbe96f

Please sign in to comment.