tObjPlane[2] = 0;
tObjPlane[3] = -r.getY() / heightFactor;
LockedArray la = Utils.arraccess.lockArrayShort(sObjPlane);
gl.glTexGendv(GLDefs.GL_S, GLDefs.GL_OBJECT_PLANE, la.getAddress());
la.release();
la = Utils.arraccess.lockArrayShort(tObjPlane);
gl.glTexGendv(GLDefs.GL_T, GLDefs.GL_OBJECT_PLANE, la.getAddress());
la.release();
gl.glEnable(GLDefs.GL_TEXTURE_GEN_S);