It can be done with shaders: https://github.com/freeciv/freeciv-web/commit/2d88ebb289ef423622f26a49ac33bb24992a135b