Hello,
I received no replies in my general post so I’m hoping someone from the shader forum can help me.
----[snip]----------------------
One of my current projects is an isometric side-scroller using 2D backgrounds and 3D everything-else. There is a need for some refractive visual effects, however I’ve discovered that refraction and similar shader functions don’t seem to work with an isometric camera.
Has anyone else run up against this problem and found a way around it?
Many thanks in advance for any help.
Not quite sure what you mean by “Refraction and similar shader functions” or “Don’t work with an isometric camera”…
You’re using RTs, I assume? What specifically have you tried, and in what way does it not work?
Hi, thank you for replying.
Not sure what you mean by RTs. As for “Refraction and similar shader functions”, I mean any shaders that use the same functions as a refractive shader. As for it not working: you can reproduce this with geometry or just a refractive shader on a flat surface. Drop a background into a scene in Unity so you have something to view through the refracting surface. Drop a sphere into the scene in front of the background, and give it a refractive shader.
Move the sphere or the camera to see the background distort through the geometrys material, this is the expected and desired outcome. Now change your viewport camera to be Orthographic instead of Perspective and repeat the same steps. The refractive effect of the object is so negligible it’s practically not even there.
So my conclusion is that there is some function with the refractive shader that seems to need a perspective camera in order to work at all, and as I mentioned in the original post, unfortunately, this particular game has a 2D Orthographic camera but needs refractive effects.
Any suggestions to working around this is greatly appreciated! I figure any shader artist who knows their stuff could probably figure it out right away, or at least provide a reason for the behavior.