Good day, I’ve been working on a system for low-lag better-looking streetlights in my game. here’s a video to demonstrate. Any feedback or ideas on how I could change or update them, including this such as how they look, the appearing and disappearing animation etc would be greatly welcomed!
important things to note:
A single beam instance was used per light in order to get the glare effect, however, when looking at different angles to the light the width of the beam is updated to match the width of the light, giving a 3d effect.
You probably didn’t notice, but the same script which deals with the light glare also deals with the movement of the conveyor belt beside the wall, and if you look closely you can see it stop and start when the player moves far enough away.
The script was designed to be very efficient, and when I created around 100 streetlights in close proximity the script’s activity wouldn’t go above 1%, and would stay at about 0.3% when none of the lights were in range.
Yeah it definitely isn’t realistic, I’ll experiment with more transparent glare as you said. I’ll likely still include it when there is no fog (the game I’m creating probably won’t have a weather cycle), as I just think that it’s a cool effect. I’ll be sure to make it more transparent and only appear at night when the streetlights turn on however. Thanks for the feedback!
They are not available currently as I created the system for a game I am still working on. However if I discontinue the project I would be happy to give them away free of charge.