Skip to content

Commit ea8a13c

Browse files
s-rigaudSamuel Rigaud
andauthored
ProgressiveLightMapGPU: disclove potpack hidden behavior (#30716)
Co-authored-by: Samuel Rigaud <[email protected]>
1 parent a2b8200 commit ea8a13c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/jsm/misc/ProgressiveLightMapGPU.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ class ProgressiveLightMap {
112112
object.receiveShadow = true;
113113
object.renderOrder = 1000 + ob;
114114

115-
// Prepare UV boxes for potpack
115+
// Prepare UV boxes for potpack (potpack will update x and y)
116116
// TODO: Size these by object surface area
117-
uv_boxes.push( { w: 1 + ( padding * 2 ), h: 1 + ( padding * 2 ), index: ob } );
117+
uv_boxes.push( { w: 1 + ( padding * 2 ), h: 1 + ( padding * 2 ), index: ob, x: 0, y: 0 } );
118118

119119
this._lightMapContainers.push( { basicMat: object.material, object: object } );
120120

0 commit comments

Comments
 (0)