Hi, i’m currently working on a small game in which you will need to re-direct light until it hits a certain point in the level. You re-direct the light by using mirror that can be rotated around etc.
i’m currently using line tracing to calculate the reflecting light, and these line traces are updated each tick to keep the lines up to date in case the player in some way moves anything that might affect the light in some way.
Now i have a question regarding the lighting the reflecting light should give off, i’m thinking of having so when the light hits a reflecting surface and the line trace reflects in a certain direction to dynamically create a spot light at the hit location of the line trace and set the rotation of that light the the new reflected direction.
But since i update the line traces each frame this sounds quite heavy on performance, so i’m wondering if there is any alternative ways for me to do this or will i have to create and delete lights each tick?