Skip to content

Commit

Permalink
[Fix] Fix in lightmapper where a material lightmap would be incorrect…
Browse files Browse the repository at this point in the history
…ly released during baking (#7005)

Co-authored-by: Martin Valigursky <[email protected]>
  • Loading branch information
mvaligursky and Martin Valigursky committed Oct 2, 2024
1 parent f94c036 commit fd974ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/lightmapper/lightmapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ class Lightmapper {
m.mask = MASK_BAKE; // only affected by LM lights

// patch material
m.setRealtimeLightmap(MeshInstance.lightmapParamNames[0], m.material.lightMap ? m.material.lightMap : this.blackTex);
m.setRealtimeLightmap(MeshInstance.lightmapParamNames[0], this.blackTex);
m.setRealtimeLightmap(MeshInstance.lightmapParamNames[1], this.blackTex);
}
}
Expand Down

0 comments on commit fd974ee

Please sign in to comment.