Skip to content

Commit 94e2932

Browse files
committed
add comment on bit packing
1 parent 2f3a731 commit 94e2932

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
@@ -1059,6 +1059,8 @@ function writeCompressedAttrib0(
10591059
compressed1 += upperTranslateY;
10601060
compressed2 += lowerTranslateY;
10611061

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

0 commit comments

Comments
 (0)