- Home /
Pulsing glow/self-illum
Hello everyone, Im trying to get a effect which consist of getting a pulsing glow on a object which has to get picked up in the game so the player can see it easyer.
I tried to animate the main color of the self illum shader but I could figure it out.
Something similar but it doesnt need to be on the edge
// Interpolate light color between two colors back and forth
var duration : float = 1.0;
var color0 : Color = Color.red;
var color1 : Color = Color.blue;
function Update () {
// set light color
var t : float = Mathf.PingPong (Time.time, duration) / duration;
light.color = Color.Lerp (color0, color1, t);
}
I found this for a lamp tried to adap it but i failed...
I hope you guys can help me out
Greetings
Saudius
Answer by YoungDeveloper · Aug 21, 2013 at 09:08 PM
Try this http://forum.unity3d.com/threads/13107-Glow-effect-with-adjustable-threshold-%28enjoy%29
I also know that tornado twins in their fps control have this effect when you walk near a weapon it starts to glow.
Your answer
Follow this Question
Related Questions
Normal Map not working with Self Illuminated Shader? 0 Answers
Pulsing/Throbbing Glow Effect on Sphere? 1 Answer
Changing AlphaSelfIllum Shader to use Cutout? 2 Answers
Glowing ring 0 Answers
Shader Replacement example project upside down with AA 0 Answers