I'm involved making a game which involves switching gravity as a core mechanic and want to create two terrains which can both be travelled on; one normal one and another which is flipped upside-down.
There could be a really easy way doing this that I've missed but anyway, any help would be very much appreciated!
(and it should be mentioned that I'm really awful at scripting!)
We’re using upside-down terrain as ceiling for caves.
What is needed is custom terrain shader with flipped normals and “Cull Front”
What is not working properly is shadows from Directional Light (sun), there are issues caused by Bias a SlopeBias, because shadow shader is applying them in opposive way. We didn’t try to fix it since we don’t need sun in caves.
We’ve taken original terrain shader, made a copy and changed few lines.
Similar changes has been done in other shaders (Add pass, Base, Base-gen, Picking, Selection)
Zip archive with all shaders & material (Unity 2019.1): [138557-terrainflip.zip|138557]