From 5ca8cd1a5cc199db4f663f7408719bcf723a902f Mon Sep 17 00:00:00 2001 From: Gottfried Hofmann Date: Tue, 3 Sep 2024 18:26:27 +0200 Subject: [PATCH] Add warning to readme that the second UV layer could be overwritten by the auto baker. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 3ee8c102..fbc26aa2 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,10 @@ Note that for use in Hubs, you currently **MUST** use the second UV set, as Thre ![setting bake UV](https://user-images.githubusercontent.com/130735/83697782-b9e96b00-a5b4-11ea-986b-6690c69d8a3f.png) +# Automatically baking Lightmaps + +To automatically create the node-setup needed to bake lightmaps and run baking on one step, select all objects you want to bake lightmaps for and got to `Object Properties > Hubs Lightmap Baker` and click on `Bake Lightmaps of selected objects`. **WARNING**: If a second UV layer is present on an object but it does not have a material with a `MOZ_lightmap` node, the UV layer will be overwritten! + # Exporting This addon works in conjunction with the official glTF add-on, so exporting is done through it. Select "File > Export > glTF 2.0" and then ensure "Hubs Components" is enabled under "Extensions".