Adapted changes of terrainmaterials mod.