final ReadOnlyColorRGBA[] colors = new ReadOnlyColorRGBA[256];
colors[0] = ColorRGBA.BLUE;
colors[255] = ColorRGBA.BLACK;
GeneratedImageFactory.fillInColorTable(colors);
Image img = GeneratedImageFactory.createLuminance8Image(new VoroniFunction3D(6, .5, true, 1), wside, hside, 1);
img = GeneratedImageFactory.createColorImageFromLuminance8(img, false, colors);
tex.setImage(img);
tex.setTextureKey(TextureKey.getRTTKey(MinificationFilter.Trilinear));
tex.setMagnificationFilter(MagnificationFilter.Bilinear);
tex.setMinificationFilter(MinificationFilter.Trilinear);