# Using static lightmap from texture

**URL:** <https://forum.castle-engine.io/t/using-static-lightmap-from-texture/917>\
**Category:** 3D\
**Created:** [October 2, 2023, 7:40am UTC](https://forum.castle-engine.io/t/using-static-lightmap-from-texture/917 "2023-10-02T07:40:28Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Recongalina](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/recongalina/32/1530_2.png) [@Recongalina](https://forum.castle-engine.io/u/Recongalina)\
**Post date:** [August 16, 2024, 2:25pm UTC](https://forum.castle-engine.io/t/using-static-lightmap-from-texture/917/5 "2024-08-16T14:25:52Z")

</div>

I understood my mistake. I’m accustomed to paradigm of old game engines, such as Irrlicht, Quake 3, etc. with a light map that replaces lighting.  
There’s another logic here. There is BaseTexture, MetallicRoughnessTexture and OcclusionTexture. And each of them can have its own UV coordinates, as I understand it. OcclusionTexture can be used as an analog of a light map and, moreover. And it can  
be combines with light sources. This method can allow make pretty good looking shadows in static scenes.

 ![lightmap_test](https://forum.castle-engine.io/uploads/default/original/2X/a/a7afa2bd86491b4b96c162f942a2d7a90854d0e2.jpeg)

There is my test scene for researching this shadowing method:  
[lightmap\_test.zip](https://forum.castle-engine.io/uploads/short-url/4ZYc2BpXdaaDUWZZ73spz2A8sxQ.zip) (2.0 MB)

---

_[View the full topic](https://forum.castle-engine.io/t/using-static-lightmap-from-texture/917)._
