diff --git a/CesiumGltf/generated/include/CesiumGltf/ExtensionKhrGaussianSplatting.h b/CesiumGltf/generated/include/CesiumGltf/ExtensionKhrGaussianSplatting.h index bbdc1ac85..acb62331f 100644 --- a/CesiumGltf/generated/include/CesiumGltf/ExtensionKhrGaussianSplatting.h +++ b/CesiumGltf/generated/include/CesiumGltf/ExtensionKhrGaussianSplatting.h @@ -13,5 +13,10 @@ namespace CesiumGltf { static inline constexpr const char* TypeName = "ExtensionKhrGaussianSplatting"; static inline constexpr const char* ExtensionName = "KHR_gaussian_splatting"; + /** + * @brief Scale used when dequantizing position attribute values + */ + double quantizedPositionScale = 1; + }; } diff --git a/CesiumGltfReader/generated/src/ExtensionKhrGaussianSplattingJsonHandler.h b/CesiumGltfReader/generated/src/ExtensionKhrGaussianSplattingJsonHandler.h index 378e53756..947992ce5 100644 --- a/CesiumGltfReader/generated/src/ExtensionKhrGaussianSplattingJsonHandler.h +++ b/CesiumGltfReader/generated/src/ExtensionKhrGaussianSplattingJsonHandler.h @@ -3,6 +3,7 @@ #pragma once #include +#include #include namespace CesiumJsonReader { @@ -31,6 +32,6 @@ namespace CesiumGltfReader { private: CesiumGltf::ExtensionKhrGaussianSplatting* _pObject = nullptr; - + CesiumJsonReader::DoubleJsonHandler _quantizedPositionScale; }; } diff --git a/CesiumGltfReader/generated/src/GeneratedJsonHandlers.cpp b/CesiumGltfReader/generated/src/GeneratedJsonHandlers.cpp index 7b06d5515..06ba74529 100644 --- a/CesiumGltfReader/generated/src/GeneratedJsonHandlers.cpp +++ b/CesiumGltfReader/generated/src/GeneratedJsonHandlers.cpp @@ -1362,7 +1362,7 @@ CesiumJsonReader::ReadJsonResult_quantizedPositionScale, o.quantizedPositionScale); return this->readObjectKeyExtensibleObject(objectType, str, *this->_pObject); } diff --git a/CesiumGltfWriter/generated/src/ModelJsonWriter.cpp b/CesiumGltfWriter/generated/src/ModelJsonWriter.cpp index 8b46cb18e..f31e895c5 100644 --- a/CesiumGltfWriter/generated/src/ModelJsonWriter.cpp +++ b/CesiumGltfWriter/generated/src/ModelJsonWriter.cpp @@ -953,6 +953,11 @@ void writeJson( const CesiumJsonWriter::ExtensionWriterContext& context) { jsonWriter.StartObject(); + if (obj.quantizedPositionScale != 1) { + jsonWriter.Key("quantizedPositionScale"); + writeJson(obj.quantizedPositionScale, jsonWriter, context); + } + writeExtensibleObject(obj, jsonWriter, context); jsonWriter.EndObject();