public void setPieceMaterial()
	{
		switch(this.pieceMatId)
		{
		case 1 :
			lightPieceMat = factory.loadGold();
			darkPieceMat = factory.loadPurpleMarble();
			break;
		case 2 :
			lightPieceMat = factory.loadRosewood();
			darkPieceMat = factory.loadBrownwood();
			break;
		case 3 :
			lightPieceMat = factory.loadIvory();
			darkPieceMat = factory.loadFlorenceMarble();
			break;
		case 4 :  // Gouraud shader
			lightPieceMat = factory.loadHW(
					ColorRGBA.Red.mult(0.5f), 1, 50);
			darkPieceMat = factory.loadHW(
					ColorRGBA.Blue.mult(0.5f), 1, 50);
			break;
		case 5 :  // Blinn-Phong shader
			lightPieceMat = factory.loadHW(
					ColorRGBA.Red.mult(0.5f), 2, 80);
			darkPieceMat = factory.loadHW(
					ColorRGBA.Blue.mult(0.5f), 2, 80);
			break;
		case 6 :  // Checkerboard procedural texturing
			int density = 2;
			lightPieceMat = factory.loadHW(
					ColorRGBA.Yellow.mult(0.5f), MaterialFactory.NavyPurple, density);
			darkPieceMat = factory.loadHW(
					ColorRGBA.Pink.mult(0.6f), ColorRGBA.Green.mult(0.3f), density);
			break;
		case 0 :
			factory.toggleWireFrame(lightPieceMat);
			factory.toggleWireFrame(darkPieceMat);
		}
	}