Skip to content

Commit eb2e510

Browse files
committed
add comment on bit packing
1 parent 7528a0f commit eb2e510

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/engine/Source/Scene/BillboardCollection.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,8 @@ function writeCompressedAttrib0(
10601060
compressed1 += upperTranslateY;
10611061
compressed2 += lowerTranslateY;
10621062

1063+
// Compress image coordinates (px), integers 0-2^16 from lower-left of atlas. Avoid
1064+
// `AttributeCompression.compressTextureCoordinates` for lossless pixel values.
10631065
const compressedImageLL = imageX * LEFT_SHIFT16 + imageY;
10641066
const compressedImageLR = (imageX + imageWidth) * LEFT_SHIFT16 + imageY;
10651067
const compressedImageUR =

0 commit comments

Comments
 (0)