Here is the equation in a simpler form:


<https://lh4.googleusercontent.com/-HrQdYtJKcB4/UMurQ1IR8JI/AAAAAAAAAJs/fo69AX6pNwY/s1600/CodeCogsEqn.gif>



On Thursday, December 13, 2012 3:30:54 PM UTC-6, bob wrote:
>
> I noticed the vignette effect on Android looks really good.
>
> In the code, it boils down to this surprising formula:
>
> float lumen = shade / (1.0 + exp((dist * inv_max_dist - range) * slope)) + 
> (1.0 - shade);
>
> Anyone know where this formula comes from?  I was definitely surprised to 
> see a cameo from the irrational number e.
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to