class Terrain{ float[][] heightMap; float[][][] normals; color[][] vertexColor; float xStep,yStep; int h, w, res, zScale; color[] spectrum; boolean gouraud = false; boolean textureBlend = true; boolean wireframe = false; boolean dynamicTexture = false; //------------ Terrain(int res){ this(width,height,res,200); buildVertexColors(); } //------------ Terrain(Terrain t){ this(t.w,t.h,t.res,t.zScale); } //------------ Terrain( int w, int h, int res, int zScale){ vertexColor = new color[res][res]; for(int x=0;x