small medium large xlarge

Generic-user-small
22 Sep 2013, 21:17
John Stracke (2 posts)

In chapter 12, I’ve got the terrain drawing, but it’s all green; it’s as if, when calling mix(), aPosition.y were just 0. (When I replace aPosition.y with 1.0, everything comes out grey, so I know mix() is doing something right.)

I tried changing aPosition.y to .x and .z; same results. But, of course, aPosition is used to generate gl_Position later on in the shader, so it can’t just be (0,0,0). Any ideas?

Generic-user-small
22 Sep 2013, 21:17
John Stracke (2 posts)

…of course that’s a_Position.

Generic-user-small
23 Sep 2013, 20:36
Kevin Brothaler (41 posts)

Hi John,

You can try comparing your source with the official source, available here: http://pragprog.com/titles/kbogla/source_code. It’s possible there’s a slight difference which would account for the incorrect rendering.

If that doesn’t help, please send it over to me and I’ll check it out (you can email me from www.learnopengles.com).

  You must be logged in to comment