Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Zaxrem |
Hello, I am working on a project and I need some help.
I’ve been using Light2d
and LightOccluder2D
to cast shadows in a 2.5D environment.
The problem arises when I want to have a “sun” that is on top of the 2d map and cast a small shadow that doesn’t extend to infinite.
I have a large light texture,that is attached to the top left of the screen,and the shadows that is casts are extended by a lot.
This isn’t a problem with small light sources,as it makes sense
I’ve tried messing with the options and I can’t find anything, + I can’t seem to understand how the “height option” works. Is there anything that needs to be set up first before the changes in that option take place? Because I keep changing it and nothing happens.
Cheers
Have you considered lowering the sun’s light intensity as it is setting?
Amateur.game.dev. | 2020-09-12 12:45
Yes,and unfortunately it has this as a result
in case it can’t be seen clearly in the image,i still have an infinitely extending shadow but this time it is less visible
Zaxrem | 2020-09-12 13:23