Light/laser beam refraction
Hello, I'm creating a game where the player positions and rotates mirrors to redirect colored beams of light to a certain object in the level. The problem is i don't know how to make the beam refract when it hits a mirror since the refraction has to be realistic, i thought of getting the laser beam and instantiating a refracted beam upon hitting a mirror , i know the basics of optics but i can't calculate the angle of refraction nor the angle of incidence , i know i have to use the vector components, normals , the location of the mirror and maybe sin and cos but i can't think of a formula to calculate the angles. I read something about using shaders to refract but i don't think it will work for this game as it won't actually refract a beam of light. Thanks in advance