why i am unable to view the light on my road ? whats going wrong in here >??
Jessica, which Rendering Path are you using?
If you are in forward rendering, you are limited to 4 lights per game object that will light per-pixel, and then another 4 that will render per-vertex, and then any other light will basically not render (apparently they will render as an approximation, but I haven’t seen that).
If your spotlight that you are trying to add is a 5th light to hit that object, and it’s not hitting any vertices, it’s not going to appear.
To fix this you have several options:
- Switch to Deferred rendering (no light limit).
- Break your road up into multiple objects such that only four lights hit each piece.
- Keep the road as one object, but add more vertices such that the light hits the vertices and you at least get vertex lighting (not great, but better than nothing).
Of course, all that assumes you are in Forward rendering. If not, then ignore everything I said ![]()