- Home /
How to make something visible in lack of light in a scene?
Hi,
In my game I need to make an object well-lit, even when there is no light source in the scene or in a better term, I need to make one object just to get lighting from one light source, not others.
The effect I'm after is have an object very well-lit in a complete dark scene.
Thanks.
Answer by Fornoreason1000 · Jan 27, 2014 at 09:11 AM
Shaders, my friends, you simply need to code a shader that ignores/produces its own light, i believe you want the self ilium/unlit shaders that comes with unity. to implement then select you material, select where it says "Diffuse" an browse to a sell-illum/unlit shader.
regardless of the light level, the object with the self illum/unlit shader will always appear to have light on it.
Answer by MaT227 · Jan 27, 2014 at 09:11 AM
You can use the Unlit or Self-Illum shader. Or maybe built one if you can. Unlit shader are good in term of performances.
But you can also assign light to an object using the Culling Mask of the light and Layers.
Your answer
Follow this Question
Related Questions
Did i miss something about lighting ? It's not looking like the real survival shooter game 0 Answers
Darkened scene on Android build 0 Answers
Need help with lighting objects. 1 Answer
Darkness system 2 Answers
How do I make my 3d game dark and give my first person player kind of a flashlight 2 Answers