Hello!
We are creating a horror inspired game for a project in school so i’m new to unity.
I encountered a problem with lightning today. As you can see in the picture we have a “flashlight” which is created by two spot lights, one stronger light in the middle with another light in the edges.
As i made a custom grass texture (.png) and aimed my spot light at it (as you can see) it didn’t work out really as i would hope. Barely half of the grass texture is affected by the light and the upper half stays dark.
Can this be corrected somehow?[9160-spotlight+error.jpg|9160]
2 Answers
2
this just looks like a shader issue thats all.
Flip around shaders till you get one thats good.
Is your ambient light none? (black)
maybe bump it up a bit.
maybe its the angle it’s hitting the texture (or the angle of the billboard)
maybe its a diffuse lighting issue. Not sure. Perhaps needs wrap around diffuse lighting
Can i change shader on a grass texture?
I tried changing ambien light though the problem persist.
I think it has something to do with the height of the grass cause the lightning works correctly until i change my own or unity’s grass to have a max height over (about) 5 or 6.
What shader are you using?
– whydoidoit