There is a Triangle in the game which is supposed to behave like a prism and light rays pass through it in a refracted manner. There are also mirrors in the level which perform reflection.
We are using Linerenderer to render the ray.
We have written our own script for refraction of light through the triangle, using Snell's Law of refraction.
Problems that we are facing in Refraction Class script
1. Number of Refraction/Reflection of Linerenderer is not consistent.
2. Reflection and refraction do not occur simultaneously and consistently.
3. The uneven flickering of reflected and refracted rays.
Please revert back if you need any more information.
P.S : will attach project on request.