Is it possible to bake lit material of an object into a texture file?

Example use case: lighting an object in UE and exporting it as GLTF file for use elsewhere, like on a website that’s unlit.

The texture would look like as if we merged base color with a lightmap.

Yes, this should be doable. You can simply use a render target to capture a scene into a texture. You can simply then use baked information to export it into a separate scene or mesh that can be used elsewhere. You can read more about render targets here: Blueprints and Render Targets | Unreal Engine 4.27 Documentation

1 Like