Spotlight falloff

Apologies if this is a really obvious setting that I’m missing, but… is it possible to set falloff on the spotlight cone? i.e. a gradual fade from light to dark rather than a sharp cut of light around the cone’s perimeter?

An example of the sharp edge I’m talking about can be seen below (a torch-light shining on the side of a cube):

I’ve tried playing with attenuation on the light but it doesn’t seem to do anything.

Or is this something I would need to implement myself in a shader?


Sorry - I couldn’t find any refs in documentation or posts but the gl/multiLightExample shows that the ‘setSpotConcentration’ method will control falloff between 0 (hard edge, no falloff) and 128 (smooth falloff)

Problem solved :slight_smile: