Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tick mark wrong in texture sample #116

Closed
PrincessGod opened this issue Aug 24, 2017 · 1 comment
Closed

Tick mark wrong in texture sample #116

PrincessGod opened this issue Aug 24, 2017 · 1 comment

Comments

@PrincessGod
Copy link
Contributor

PrincessGod commented Aug 24, 2017

In this sample,
use this code in render part

       // Compute the projection matrix
132    var projectionMatrix =
133        m4.orthographic(0, gl.canvas.clientWidth, gl.canvas.clientHeight, 0, -1, 1);

and the m4.orthographic() set 0 -> gl.canvas.clientHeight form top to bottom

...
    function orthographic(left, right, bottom, top, near, far, dst) {
...

but set 0 -> positive (-1, 4) from bottom to top for tick marks ,
maybe it have to be (4, -1) from bottom to top.
I founded this when check both direction to CLAMP_TO_EDGE.

@greggman
Copy link
Member

Doh! Fixed

5815d73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants