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 (playcanvas#7005)

Co-authored-by: Martin Valigursky <[email protected]>
  • Loading branch information
mvaligursky and Martin Valigursky authored Oct 2, 2024
1 parent 800aa6c commit db22161
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 @@ -971,7 +971,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 db22161

Please sign in to comment.