hello this is a very cool shader that limits godot to 256 colors no it will not break with reverse z and i dont know how far back it is supported but it definitely works and if you hate me and my design desicions you can change the colors in-editor
link to where it all started : https://gist.github.com/erdavids/3cc909f68adb8e8b6589158e30819eff