- Home /
Lighting up Linerenderers
So I'm using a line renderer to make a laser pointer type thing. The problem I'm facing though is that at night time the "material" is not lit up like it should be. Is there a way to add a light JUST for the laser to make it Illuminate perfectly? Or a way to make it not accept light changes and keep the color a solid bright red? I'm using javascript and the game is a TDS.
Thanks!
Answer by Jessy · Jun 16, 2012 at 03:57 AM
http://answers.unity3d.com/questions/topics/self-illumination.html
http://unity3d.com/support/documentation/Components/shader-SelfIllumFamily.html
There's even the source code for a tiny solid red shader here: http://unity3d.com/support/documentation/Components/SL-Material.html
Your answer
![](https://koobas.hobune.stream/wayback/20220613072838im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Cant get my gui in the quiwindow to load there functions... 1 Answer
Objects falling from the specific height randomly. 2 Answers
Spawning random terrain pieces 1 Answer
How to create a game object through a function 2 Answers
How to create a 2D parabolic trajectory prediction line with javascript? 1 Answer