astrochili / defold-illumination

Ready-to-use forward shading lighting extension for Defold
MIT License
34 stars 1 forks source link

The combination of `cutoff`, `radius` and `smoothness` is not so obvious. #4

Open astrochili opened 1 year ago

astrochili commented 1 year ago

A spotlight uses smoothness to smooth out edges of cutoff lighting. But the same value is used to attenuate the light along the radius.

To get the best results with cutoff, you need to jungle with cutoff, radius and smoothness, which is not so obvious.