Search⌘ K
AI Features

Creating Fake Lighting Using a Lightmap

Explore how to apply lightmaps in Three.js to simulate enhanced lighting effects baked into textures. Understand the use of uv2 coordinates and texture loaders to add realistic shadows and light details in static 3D scenes.

We'll cover the following...

Lightmap

While an ambient occlusion map changes the amount of light received by certain parts of the model, Three.js also supports lightmap, which does the opposite (approximately) by specifying a map that adds extra lighting to certain parts of the model.

A lightmap is a texture that contains information about how much the lights in the scene will affect the ...