Posted December 31, 2023 by kindeyegames
Some simple screenspace spotlight lighting.
It can be difficult to find the right z, since it does not match the traditional Z settings. In this case I am using 20000+ as the spotlight z source. If you use regular z instead of normalized z, this might need to change.
For the roving spotlight, I am changing the the spotlight dir x with a sine value.