Hi everyone, in my game I wanted to do some fake really simple lighting so I have a sphere with a simple shader, it looks something like this:
It does the job and I actually kinda like how it looks, the problem is that the sphere (obviously) can go through the walls, kinda destroying the illusion, so I would like to know if there is a simple way to “clip” the lighting sphere so that it doesnt go through the wall
Thank you for your time and sorry for my english