diff --git a/CHANGES.md b/CHANGES.md index 1a0c61b0c..4d70588f4 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,23 +5,28 @@ ##### Breaking Changes :mega: - Removed support for `EXT_feature_metadata` in `CesiumGltf`, `CesiumGltfReader`, and `CesiumGltfWriter`. This extension was replaced by `EXT_mesh_features`, `EXT_instance_features`, and `EXT_structural_metadata`. -- Moved `ReferenceCountedNonThreadSafe` to `ReferenceCounted.h`. It also now a type alias for `ReferenceCounted` rather than an actual class. +- Moved `ReferenceCountedNonThreadSafe` to `ReferenceCounted.h`. It is also now a type alias for `ReferenceCounted` rather than an actual class. +- Renamed `applyKHRTextureTransform` to `applyKhrTextureTransform`. The corresponding header file was similarly renamed to `CesiumGltf/applyKhrTextureTransform.h`. ##### Additions :tada: - Added `TextureViewOptions`, which includes the following flags: - - `applyKhrTextureTransformExtension` . When true, the view will automatically transform texture coordinates before sampling the texture. - - `makeImageCopy`. When true, the view will make its own CPU copy of the image data. -- Added `TextureView`, which views an arbitrary glTF texture and can be affected by `TextureViewOptions`. `FeatureIdTextureView` and `PropertyTexturePropertyView` now inherit this class. -- Added `options` parameter to `PropertyTextureView::getPropertyView` and `PropertyTextureView::forEachProperty`, which allow views to be constructed with property-specific options. + - `applyKhrTextureTransformExtension`: When true, the view will automatically transform texture coordinates before sampling the texture. + - `makeImageCopy`: When true, the view will make its own CPU copy of the image data. +- Added `TextureView`. It views an arbitrary glTF texture and can be affected by `TextureViewOptions`. `FeatureIdTextureView` and `PropertyTexturePropertyView` now inherit from this class. +- Added `options` parameter to `PropertyTextureView::getPropertyView` and `PropertyTextureView::forEachProperty`, allowing views to be constructed with property-specific options. - Added `KhrTextureTransform`, a utility class that parses the `KHR_texture_transform` glTF extension and reports whether it is valid. UVs may be transformed on the CPU using `applyTransform`. - Added `contains` method to `BoundingSphere`. - Added `GlobeRectangle::MAXIMUM` static field. - Added `ReferenceCountedThreadSafe` type alias. +- Added `SimplePlanarEllipsoidCurve` class to help with calculating fly-to paths. +- Added `sizeBytes` field to `ImageCesium`, allowing its size to be tracked for caching purposes even after its `pixelData` has been cleared. +- Added `scaleToGeocentricSurface` method to `Ellipsoid`. ##### Fixes :wrench: - Fixed a bug in `BoundingVolume::estimateGlobeRectangle` where it returned an incorrect rectangle for boxes and spheres that encompass the entire globe. +- Fixed an incorrect computation of wrapped texture coordinates in `applySamplerWrapS` and `applySamplerWrapT`. ### v0.32.0 - 2024-02-01 @@ -35,7 +40,6 @@ - Added conversions from `std::string` to other metadata types in `MetadataConversions`. This enables the same conversions as `std::string_view`, while allowing runtime engines to use `std::string` for convenience. - Added `applyTextureTransform` property to `TilesetOptions`, which indicates whether to preemptively apply transforms to texture coordinates for textures with the `KHR_texture_transform` extension. - Added `loadGltf` method to `GltfReader`, making it easier to do a full, asynchronous load of a glTF. -- Added `GlobeFlightPath` class to help with calculating fly-to paths. ##### Fixes :wrench: diff --git a/package-lock.json b/package-lock.json index 69f16fb0b..ed16c2a54 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cesium-native", - "version": "0.32.0", + "version": "0.33.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cesium-native", - "version": "0.32.0", + "version": "0.33.0", "license": "Apache-2.0", "devDependencies": { "clang-format": "^1.5.0" diff --git a/package.json b/package.json index 395ddb62e..01e440a4b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cesium-native", - "version": "0.32.0", + "version": "0.33.0", "description": "Cesium 3D Geospatial for C++", "main": "index.js", "directories": {