# Trouble with spotlight illuminating gltf model

**URL:** <https://forum.babylonjs.com/t/trouble-with-spotlight-illuminating-gltf-model/64093>\
**Category:** Questions\
**Created:** [September 14, 2026, 10:24pm UTC](https://forum.babylonjs.com/t/trouble-with-spotlight-illuminating-gltf-model/64093 "2026-09-14T22:24:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ComicSans](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/comicsans/32/19314_2.png) [@ComicSans](https://forum.babylonjs.com/u/ComicSans)\
**Post date:** [September 14, 2026, 10:24pm UTC](https://forum.babylonjs.com/t/trouble-with-spotlight-illuminating-gltf-model/64093/1 "2026-09-14T22:24:10Z")

</div>

Please help me figure out what configuration I missed. Hemisphere lights are illuminating my gltf mesh, but spotlights aren’t. I figure it’s something to do with the material’s texture. I started noticing this in lite, but then I recreated in regular Babylon.js, and it happens there too.

[Regular Playground Link](https://playground.babylonjs.com/#WGZLGJ#11535)

[Lite Playground Link](https://liteplayground.babylonjs.com/snippet/3IDRXJ/v/6)

The issue is similar to[this old question](https://forum.babylonjs.com/t/imported-glb-model-wont-light-up/5233), but if I view vertex normals (e.g. see three.js screenshot below), they appear fine.

This is driving me insane because we did a game jam in the spring with these _ **exact** _ models, and [it worked fine then](https://ld59.comicsans.games/) (spoiler: game is not very fun). Anyway, that codebase is really large and convoluted, and I can’t figure out what’s different between that jam codebase and these playgrounds.

Thanks!

 ![storeTallWithNormals](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/5/d/5d5f1ba9b70e590854bfc3d55d04bccebcb05b3e.png)

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [September 15, 2026, 8:54am UTC](https://forum.babylonjs.com/t/trouble-with-spotlight-illuminating-gltf-model/64093/2 "2026-09-15T08:54:02Z")

</div>

Your spotlight is working, but it is extremely weak for a PBR material at that distance. The glTF is loaded as a `PBRMaterial`, which uses physical inverse-square attenuation by default. The hemispheric light has no distance attenuation, and the ground’s `StandardMaterial` uses different lighting behavior, so comparing their responses is misleading.

With the spotlight roughly 7-10 scene units away and an intensity of `1`, only around `1/50` to `1/100` of its intensity reaches the model before the remaining PBR lighting calculations.

Either move the spotlight closer or substantially increase its intensity:

```auto
spotlight.intensity = 100; // Adjust for the desired exposure

```

In the Babylon Lite example, the fourth argument is the intensity:

```auto
const spotlight = createSpotLight(
    [0, 10, 0],
    [0, -1, 0],
    Math.PI / 4,
    100,
);

```

If you intentionally want nonphysical/legacy attenuation instead:

```auto
spotlight.falloffType = BABYLON.Light.FALLOFF_STANDARD;
spotlight.range = 20;

```

An environment texture is recommended for PBR fill lighting, but it is not required for the spotlight itself to work.

I also checked the old game’s shipped code. Its spotlight has an intensity of `3`, but more importantly, it is parented to the drone and positioned only about one unit above it. In the Playgrounds, the spotlight is around ten units away, which explains the apparent behavioral difference.

There is also an unrelated loader warning because the Firebase URL has no `.glb` suffix. The regular Playground can make the format explicit:

```auto
await BABYLON.AppendSceneAsync(model, scene, {
    pluginExtension: ".glb",
});

```

---

<div class="post-metadata">

**Author:** ![ComicSans](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/comicsans/32/19314_2.png) [@ComicSans](https://forum.babylonjs.com/u/ComicSans)\
**Post date:** [September 15, 2026, 8:43pm UTC](https://forum.babylonjs.com/t/trouble-with-spotlight-illuminating-gltf-model/64093/3 "2026-09-15T20:43:45Z")

</div>

Thank you so much! 🙏 Your explanation clarified so much for me about lighting, and it also helped me find this snippet hidden in a corner of my code. I apparently wrote it over 3 years ago, probably while sleep deprived during a game jam. 😅

```typescript
if (!enablePhysicalLighting) {
  for (const m of scene.materials) {
    if (m instanceof PBRMaterial) {
      m.usePhysicalLightFalloff = false;
    }
  }
}

```

Past me can be a real pain sometimes.
