- Home /
How to get a glow/lightning trail effect
So im having some issue's in making a trail for The Flash in my game. Im currently using a trail renderer but i cant seem to get the lightning to have a glow/lightning effect. Instead it just looks really dark and dull even when im using a bright colour. can anyone help?
You will probably have to adjust the shader/material
Answer by Keith-Rek · Jul 26, 2018 at 05:41 PM
There are various Shader types in unity in Default, and you can use the "Unlit" Shaders for that problem. No matter the ambient light, the color will remain the same, Bright or Dark.
I've never tried using a 'glowing' effect on a trail, but you will need a whole Particle System for that. Try following Mirza's tutorial: https://www.youtube.com/watch?v=rJFxS2W7nrE
After making a 'glowing' Particle System, just minimize its range to zero, and then attach it as a child GameObject to your main 'object'.
As your object moves, the particle system also will follow your object, and it will work fine.
If is it a straight-line trail that you want, a simple trail renderer with an Unlit Shader will do.
But for a straight-lined glowing trail, you'll need a special kind of shader for that.
Or, you can just diminish the Particle System's particles' size into a dot, and let the system emit tons of them, making it 'look' like a line.
But since it will eat up a tremendous amount of processor resources, the second option is not recommended.