I just had a doubt while I was implementing
lightFalloff() in p5.js. Why does ambient light is affected by falloff? Because according to my understanding, ambient light is like fixed-intensity and omnidirectional that affects all the objects equally, regardless of their placement?
This is the quote from the references pages https://processing.org/reference/lightFalloff_.html
“Thinking about an ambient light with a falloff can be tricky. If you want a region of your scene to be lit ambiently with one color and another region to be lit ambiently with another color, you could use an ambient light with location and falloff. You can think of it as a point light that doesn’t care which direction a surface is facing.” I assume that answers your question, but if not let me know.