Compare commits

..

1 Commits

Author SHA1 Message Date
jjspace 51291baf36
Merge 841a4cf12a into bcc5ea383e 2025-11-14 14:23:35 -05:00
3 changed files with 462 additions and 678 deletions

View File

@ -7,8 +7,7 @@
#### Fixes :wrench:
- Billboards using `imageSubRegion` now render as expected. [#12585](https://github.com/CesiumGS/cesium/issues/12585)
- Improved scaling of SVGs in billboards [#13020](https://github.com/CesiumGS/cesium/issues/13020)
- Fixed unexpected outline artifacts around billboards [#13038](https://github.com/CesiumGS/cesium/issues/13038)
- Improved scaling of SVGs in billboards [#TODO](https://github.com/CesiumGS/cesium/issues/TODO)
#### Additions :tada:

View File

@ -122,8 +122,6 @@ TexturePacker.prototype._findNode = function (node, { width, height }) {
return node;
}
const borderPadding = this._borderPadding;
// Vertical split (childNode1 = left half, childNode2 = right half).
if (widthDifference > heightDifference) {
node.childNode1 = new TextureNode({
@ -132,18 +130,12 @@ TexturePacker.prototype._findNode = function (node, { width, height }) {
width,
height: nodeHeight,
});
// Apply padding only along the vertical "cut".
const widthDifferencePadded = widthDifference - borderPadding;
if (widthDifferencePadded > 0) {
node.childNode2 = new TextureNode({
x: rectangle.x + width + borderPadding,
x: rectangle.x + width,
y: rectangle.y,
width: widthDifferencePadded,
width: widthDifference,
height: nodeHeight,
});
}
return this._findNode(node.childNode1, { width, height });
}
@ -155,19 +147,12 @@ TexturePacker.prototype._findNode = function (node, { width, height }) {
width: nodeWidth,
height,
});
// Apply padding only along the horizontal "cut".
const heightDifferencePadded = heightDifference - borderPadding;
if (heightDifferencePadded > 0) {
node.childNode2 = new TextureNode({
x: rectangle.x,
y: rectangle.y + height + borderPadding,
y: rectangle.y + height,
width: nodeWidth,
height: heightDifferencePadded,
height: heightDifference,
});
}
return this._findNode(node.childNode1, { width, height });
}

File diff suppressed because it is too large Load Diff