gl.glTexGeni(GL2.GL_T, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_EYE_LINEAR);
gl.glTexGenfv(GL2.GL_S, GL2.GL_EYE_PLANE, planeS, 0);
gl.glTexGenfv(GL2.GL_T, GL2.GL_EYE_PLANE, planeT, 0);
if (format == TexCoordGeneration.TEXTURE_COORDINATE_3) {
gl.glTexGeni(GL2.GL_R, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_EYE_LINEAR);
gl.glTexGenfv(GL2.GL_R, GL2.GL_EYE_PLANE, planeR, 0);
} else if (format == TexCoordGeneration.TEXTURE_COORDINATE_4) {
gl.glTexGeni(GL2.GL_R, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_EYE_LINEAR);
gl.glTexGenfv(GL2.GL_R, GL2.GL_EYE_PLANE, planeR, 0);
gl.glTexGeni(GL2.GL_Q, GL2.GL_TEXTURE_GEN_MODE, GL2.GL_EYE_LINEAR);