- Home /
Is there a way to make the intensity of a point light irrelevant to distance?
I'm trying to think of some interesting ways to light my game, and I thought of giving the player a point light that surrounds them, and only covers a certain distance. Everything outside of it will be difficult to see due to the absence of a directional light.
However, I don't like the way the light will show up more intense for objects that are closer to the light. I think it would look better if everything were lit with the same intensity regardless of its distance from the player (just for this light).
Is there a way to do this, and if so, how is it done?
Thanks!
Have a directional/spot light above them? So it lights some circle of area around them.
Answer by Fattie · Jun 18, 2012 at 09:50 AM
Good news - what you're describing is a Spot Light in Unity - and here's an example!
After fooling with a spotlight, I encourage you to read THIS unrelated amazing answer:
http://answers.unity3d.com/questions/267097/editor-programming-experts-regarding-layouts.html
Fattie stole my answer (which I left in a comment)! Oh well xD.
Sorry! :) $$anonymous$$y one has sarcasm and a photo, though ....
Derp. Guess I was so mixed up with my various attempts at "solutions" and "alternates" that I forgot about rotation.
Before I start to point out how ridiculously you answered this question, let me just say thanks for the answer and the time you spent. I do appreciate it.
So here I go:
I'm glad you could take time away from your insanely adept program$$anonymous$$g life in order to answer my horrible, idiot question. Bravo, sir, bravo.
The most ironic thing about this is the fact that you act so high and mighty and make it sound like you have so many better things to do (like fix your epic, elite programmers' layout problem! gasp!), yet then you take the time to take a picture of a spot light, ins$$anonymous$$d of just telling me to put a spotlight above the character and rotate it along the X axis by 90 degrees.
Oh wait, that's not enough for a stupid idiot like...well, anyone but you, of course, since you are so high and mighty! So you then have to put a huge red arrow there pointing at it, probably also detaching your Inspector and floating it there as well (it's not always halfway covering your Scene view, right...?). Though I suppose it probably only took an expert like you about..what, 5 seconds to do this?
Yes, and you also have time to randomly rant in the comments of a question about the Unity Answers website about how older game developer veterans are disrespected on the web by strangers and that young people go through their life with a "loud soundtrack". Don't you think a super-elite such as yourself should just let the ... well, the nice and conventional people... answer questions in a timely manner so you can use your incredible talent on greater things?
I prefer $$anonymous$$izuho's comment. Smooth, easy comment with no sarcastic insults involved and heavy implication that he/she believes me to be a retard. Just says the solution and keeps his/her judgments to him/herself.
But anyway, thanks for gracing me with your answer and help, good sir.
You have the wrong idea @GH$$anonymous$$P, I loved your question !!!!!!!!!!!!! Honest !
I have changed it more, @GH$$anonymous$$P ! I am truly sorry if you thought I was being mean. I think sometimes it's easy to miss the smileys in email. Also, I talk too much so you may have the wrong idea. Cheers !! Anyone here will tell you I ask the worst, stupidest questions, since I can't read.
BTW I think you completely misunderstood my post about the young people, which you mentioned. I actually do think young people SHOULD disrespect old people.
Your answer
Follow this Question
Related Questions
Weird environment lighting in HDRP 1 Answer
Playdead's Inside AO decal 1 Answer
How can I cast dynamic shadows from a light without rendering the light itself? 1 Answer
Unity face lighting face issue: Making lit faces darker and unlit faces brighter 0 Answers
Light sources disabling after bake. 1 Answer