# PointLight attenuation

**URL:** <https://forum.babylonjs.com/t/pointlight-attenuation/25012>\
**Category:** Questions\
**Tags:** lighting\
**Created:** [November 5, 2021, 1:14am UTC](https://forum.babylonjs.com/t/pointlight-attenuation/25012 "2021-11-05T01:14:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreasplesch](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/andreasplesch/32/18352_2.png) [@andreasplesch](https://forum.babylonjs.com/u/andreasplesch)\
**Post date:** [November 5, 2021, 1:14am UTC](https://forum.babylonjs.com/t/pointlight-attenuation/25012/1 "2021-11-05T01:14:27Z")

</div>

I am looking for PointLight falloff for standard (phong) material, and could not find much in the doc.

> <https://github.com/BabylonJS/Babylon.js/blob/5e6321d887637877d8b28b417410abbbeb651c6e/src/Shaders/ShadersInclude/lightsFragmentFunctions.fx#L22>

has

```auto
attenuation = max(0., 1.0 - length(direction) / range);

```

eg. linear falloff with distance relative to range, and 0 beyond range.

Am I looking at the correct place ?

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [November 5, 2021, 11:10am UTC](https://forum.babylonjs.com/t/pointlight-attenuation/25012/2 "2021-11-05T11:10:31Z")

</div>

yup this is exactly it for the standard material.
