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

Why does the "count" variable change from 2D to 3D lesson? Only size needs to change? #65

Closed
trusktr opened this issue May 13, 2017 · 1 comment

Comments

@trusktr
Copy link
Contributor

trusktr commented May 13, 2017

I'm talking about the variable here, https://github.com/greggman/webgl-fundamentals/blob/master/webgl/webgl-3d-step1.html#L183.

Shouldn't it stay the same? And only the 'sizeshould change from 2 to 3? Because if everything is the same, thencount*size` gives the total number of vertices, and so only size changes from 2 to 3 because we're drawing the same thing, only each vertex has 3 points?

For example, in the 2D lesson size was 2 and count was 6, and in the 3D lesson size changes to 3 and count changes to 18.

@trusktr trusktr changed the title Why does the "count" variable change from 2D to 3D lesson? Why does the "count" variable change from 2D to 3D lesson? Only size needs to change? May 13, 2017
@trusktr
Copy link
Contributor Author

trusktr commented May 13, 2017

Oh, nevermind, it didn't change, my bad. x]

@trusktr trusktr closed this as completed May 13, 2017
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

1 participant