We have some success! At first there were issues trying to get the "rock" texture to display (bright green part below). Zoe helped me realize I had the wrong parameter for the vertexAttribPointer, where I was supposed to pass three for the x, y, z but I was passing the number of vertices instead.
I was still struggling until I realized the vec3.create([x,y,z]) had the brackets. Below are some different shots of the cistern with the lighting.
Per Vertex Shading |
Per Fragment Shading |
Trying to do some debugging. These are just the normals. I'm not really sure what is wrong here!
No comments:
Post a Comment