I was curious if anyone could point me toward some resources for creating light bending shaders. I did some minor hunting around, but did not find any that provided the knowledge I was looking for.
I have in the past using OpenGL (Long since forgotten exactly how) gotten the vector between the eye point and a vertex then manipulated it to change what was being visualized. (Reflecting it + Raycasting to make real time mirrors)
What I would like to do in Unity3d is something similar in which one of 3 things happens:
1 - Light Reflection (Reflection based off the view angle) - Mirror
2 - Light Refraction (What is always directly behind it, or 30 degrees off of the view angle) - FalseCamo, or Lens
3 - Light Teleportation (Think something similar to the portals from the game Portal) - Portal
Each of these Ideas slightly builds off the previous (Making a mirror is no different than light building, just a slightly different function to calculate the reflected/refracted angle). This is all purely academic as I do not currently have any projects that would use them, I just noticed a surprisingly small amount of example shaders that did vector manipulation. (Perhaps Unity Doesn’t Allow for it?)