Home

Awesome

Prefab Lighting Baker

Tool Overview

Bakes lightmaps right into materials on the selected objects with them being untouched. You can also use this tool to bake lighting on dynamic and animated objects. Just copy object, replace SkinnedMeshRenderer with MeshRenderer, bake the object and put new generated materials on the original object with SkinnedMeshRenderer.

Tested on

Unity version: 2021.3.4f1 Renderer pipeline: Built-in

Guide

Process of baking

  1. Creates copies of assigned Game Objects and copies all the meshes in this objects, including child objects.
  2. Changes lighting settings of original Mesh Renderers on suitable for baking.
  3. Starts Unity`s lightmap baking process.
  4. Changes UV2 on copies of meshes.
  5. Creates new materials with lightmaps and assigns them to game objects copies.

Shader overview

Limitations