public ProceduralTextureSource(final Function3D function) {
this.function = function;
terrainColors = new ReadOnlyColorRGBA[256];
terrainColors[0] = new ColorRGBA(0, 0, .5f, 1);
terrainColors[95] = new ColorRGBA(0, 0, 1, 1);
terrainColors[127] = new ColorRGBA(0, .5f, 1, 1);
terrainColors[137] = new ColorRGBA(240 / 255f, 240 / 255f, 64 / 255f, 1);
terrainColors[143] = new ColorRGBA(32 / 255f, 160 / 255f, 0, 1);
terrainColors[175] = new ColorRGBA(224 / 255f, 224 / 255f, 0, 1);
terrainColors[223] = new ColorRGBA(128 / 255f, 128 / 255f, 128 / 255f, 1);
terrainColors[255] = ColorRGBA.WHITE;
GeneratedImageFactory.fillInColorTable(terrainColors);
}