RFR: 8217472: Add attenuation for PointLight [v5]

Kevin Rushforth kcr at openjdk.java.net
Sat Aug 8 15:46:38 UTC 2020


On Fri, 24 Jul 2020 09:16:38 GMT, Ambarish Rapte <arapte at openjdk.org> wrote:

> ```
> float attenuatedColor = gLightColor[i].xyz / (ca + la * dist + qa * dist * dist);
> ```

Typo: that should be:

float3 attenuatedColor = gLightColor[i].xyz / (ca + la * dist + qa * dist * dist);

-------------

PR: https://git.openjdk.java.net/jfx/pull/43


More information about the openjfx-dev mailing list