Commits

Roi Atalla  committed b8314df

Typo in the 7.1 example that caused the top of each column to fail to render.

  • Participants
  • Parent commits 5fec735

Comments (0)

Files changed (2)

File src/main/java/com/ra4king/opengl/arcsynthesis/gl33/chapter7/example1/Example7_1.java

 		{
 			modelMatrix.pushMatrix();
 			
-			modelMatrix.getTop().translate(0, parthenonColumnHeight, 0).scale(1,columnBaseHeight,1).translate(0,0.5f,0);
+			modelMatrix.getTop().translate(0, parthenonColumnHeight - columnBaseHeight, 0).scale(1,columnBaseHeight,1).translate(0,0.5f,0);
 			
 			uniformColorTint.program.begin();
 			glUniformMatrix4(uniformColorTint.modelToWorldMatrixUniform, false, modelMatrix.getTop().getBuffer());

File src/main/java/com/ra4king/opengl/util/Mesh.java

 								
 								break;
 							}
-							case "mesh":
-								break;
 							default:
 								throw new IllegalArgumentException("Invalid TAG name: " + xml.getName());
 						}