- Home /
Grass not affected by spotlight
Hi im trying to make a dark scene where my caracter shines light, but the grass is not affected by the spotlight of my character. However it is affected by directional light. So im really stuck.... any idea to why this is happening?

Here it is without the grass: 
Answer by kuba86699 · Dec 11, 2021 at 11:05 PM
Good day. I do not know if I will be helpful, but I will try to help somehow. Try to bake a light on your stage. You can do this using the Generate Lightning option in the Lightning tab. If that doesn't help, take a look at the grass mesh renderer and the directional light and spotlight options. That's all I can think of. I am sorry that I cannot answer your question clearly
I will try this later, im pretty new to this, and im totaly new to lights so ill se if i manage to do something with your answer. and note i could switch between spotlight, point light, arealight and directional light on the same gameobject with the same settings, and only spotlight didnt work.
So it seems that grass dont light up at all, but vertex lit does.... thats very annoying.... baked lighting didnt work eighter.....
A really strange case. Personally, I am not an expert in the field of light and the only thing I can advise you is to do the following test. Add some spotlights aimed at the grass to your scene. Then start the game and see what happens. If all SpotLights is not working properly, try changing the render mode to Important. If they still don't work, you might have something wrong with the grass itself, but if then only your character's headlight doesn't work, you'll need to try repositioning the player's light. It's the only thing that comes to $$anonymous$$d
Your answer