So I am wondering if there is some working method to create such a depth-based color gradient.
I even tried downloading Boat Attack to see if that might work, but opening in the current 2022 versions of Unity breaks it and nothing even comes up on the screen when you press play (just a blank screen).
So is there any known effective method for doing this? Thanks.
I haven’t deep analyze your link, but it does not look like correct math and screen position is not even connected.
In any case compare yours with this.
Thanks. I realized screen position wasn’t connected after I posted but that wasn’t the issue. Even connected it wasn’t working. The math was just weird.
But I appreciate the link. That is a great tutorial and I will try playing with that shader. It has many neat features that don’t work in URP out of the box (needs hi res) but I will try to capture some.