Skip to content

Commit

Permalink
Made all textures power-of-two, and corrected incorrect index buffer …
Browse files Browse the repository at this point in the history
…sizes
  • Loading branch information
gpjt committed Apr 15, 2010
1 parent 47564a8 commit e4f9ec8
Show file tree
Hide file tree
Showing 16 changed files with 451 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lesson11/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@
moonVertexIndexBuffer = gl.createBuffer();
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, moonVertexIndexBuffer);
gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, new WebGLUnsignedShortArray(indexData), gl.STREAM_DRAW);
moonVertexIndexBuffer.itemSize = 3;
moonVertexIndexBuffer.itemSize = 1;
moonVertexIndexBuffer.numItems = indexData.length;
}

Expand Down
Binary file modified lesson11/moon.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lesson12/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@
moonVertexIndexBuffer = gl.createBuffer();
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, moonVertexIndexBuffer);
gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, new WebGLUnsignedShortArray(indexData), gl.STREAM_DRAW);
moonVertexIndexBuffer.itemSize = 3;
moonVertexIndexBuffer.itemSize = 1;
moonVertexIndexBuffer.numItems = indexData.length;
}

Expand Down
Binary file modified lesson12/moon.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lesson13/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@
moonVertexIndexBuffer = gl.createBuffer();
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, moonVertexIndexBuffer);
gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, new WebGLUnsignedShortArray(indexData), gl.STREAM_DRAW);
moonVertexIndexBuffer.itemSize = 3;
moonVertexIndexBuffer.itemSize = 1;
moonVertexIndexBuffer.numItems = indexData.length;
}

Expand Down
Binary file modified lesson13/moon.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lesson14/arroway.de_metal+structure+06_d100_flat.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lesson14/earth.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lesson14/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
teapotVertexIndexBuffer = gl.createBuffer();
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, teapotVertexIndexBuffer);
gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, new WebGLUnsignedShortArray(teapotData.indices), gl.STREAM_DRAW);
teapotVertexIndexBuffer.itemSize = 3;
teapotVertexIndexBuffer.itemSize = 1;
teapotVertexIndexBuffer.numItems = teapotData.indices.length;

document.getElementById("loadingtext").textContent = "";
Expand Down
Binary file modified lesson15/earth-specular.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lesson15/earth-specular.pdn
Binary file not shown.
Binary file modified lesson15/earth.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lesson15/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@
sphereVertexIndexBuffer = gl.createBuffer();
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, sphereVertexIndexBuffer);
gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, new WebGLUnsignedShortArray(indexData), gl.STREAM_DRAW);
sphereVertexIndexBuffer.itemSize = 3;
sphereVertexIndexBuffer.itemSize = 1;
sphereVertexIndexBuffer.numItems = indexData.length;
}

Expand Down
Loading

0 comments on commit e4f9ec8

Please sign in to comment.