Skip to content

Commit adf8f4e

Browse files
committed
Comment about quantized range and scale
1 parent dd7a59c commit adf8f4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/Scene/PointCloud.js

+2
Original file line numberDiff line numberDiff line change
@@ -1225,6 +1225,8 @@ define([
12251225
var isQuantizedDraco = defined(decodedPositions) && defined(result.POSITION.data.quantization);
12261226
var isOctEncodedDraco = defined(decodedNormals) && defined(result.NORMAL.data.quantization);
12271227
if (isQuantizedDraco) {
1228+
// Draco quantization range == quantized volume scale - size in meters of the quantized volume
1229+
// Internal quantized range is the range of values of the quantized data, e.g. 255 for 8-bit, 1023 for 10-bit, etc
12281230
var quantization = result.POSITION.data.quantization;
12291231
var range = quantization.range;
12301232
pointCloud._quantizedVolumeScale = Cartesian3.fromElements(range, range, range);

0 commit comments

Comments
 (0)