diff --git a/CHANGES.md b/CHANGES.md index 60a35a7f0cf..d7b28353d0e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -7,6 +7,17 @@ #### Breaking Changes :mega: - Changed behavior of `DataSourceDisplay.ready` to always stay `true` once it is initially set to `true`. [#12429](https://github.com/CesiumGS/cesium/pull/12429) +- Updated `Cesium3DTilesVoxelProvider` to load glTF tiles using the new [`EXT_primitive_voxels` extension](https://github.com/CesiumGS/glTF/pull/69). Tilesets using the previous custom JSON format are no longer supported. [#12432](https://github.com/CesiumGS/cesium/pull/12432) +- Updated the `requestData` method of the `VoxelProvider` interface to return a `Promise` to a `VoxelContent`. Custom providers should now use the `VoxelContent.fromMetadataArray` method to construct the returned data object. For example: + +```js +CustomVoxelProvider.prototype.requestData = function (options) { + const metadataColumn = new Float32Array(options.dataLength); + // ... Fill metadataColumn with metadata values ... + const content = VoxelContent.fromMetadataArray([metadataColumn]); + return Promise.resolve(content); +}; +``` #### Fixes :wrench: