diff --git a/CHANGES.md b/CHANGES.md index 2b75aea7ac6d..d5f9e68a9cc1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -10,6 +10,8 @@ - Exposes `ScreenSpaceCameraController.zoomFactor` to allow adjusting the zoom factor (speed). [#9145](https://github.com/CesiumGS/cesium/pull/9145) +- Removed `jitter` option from `VoxelPrimitive.js` and related test code in `VoxelPrimitiveSpec.js`. [#11913](https://github.com/CesiumGS/cesium/issues/11913) + ##### Fixes :wrench: - Fixed cube-mapping artifacts in image-based lighting. [#12100](https://github.com/CesiumGS/cesium/pull/12100) diff --git a/packages/engine/Source/Scene/VoxelPrimitive.js b/packages/engine/Source/Scene/VoxelPrimitive.js index 7539bf155269..8a83c3ea2512 100644 --- a/packages/engine/Source/Scene/VoxelPrimitive.js +++ b/packages/engine/Source/Scene/VoxelPrimitive.js @@ -332,12 +332,6 @@ function VoxelPrimitive(options) { this._transformNormalLocalToWorld = new Matrix3(); // Rendering - /** - * @type {boolean} - * @private - */ - this._jitter = false; - /** * @type {boolean} * @private @@ -704,29 +698,6 @@ Object.defineProperties(VoxelPrimitive.prototype, { }, }, - /** - * Gets or sets whether or not to jitter the view ray during the raymarch. - * This reduces stair-step artifacts but introduces noise. - * - * @memberof VoxelPrimitive.prototype - * @type {boolean} - */ - jitter: { - get: function () { - return this._jitter; - }, - set: function (jitter) { - //>>includeStart('debug', pragmas.debug); - Check.typeOf.bool("jitter", jitter); - //>>includeEnd('debug'); - - if (this._jitter !== jitter) { - this._jitter = jitter; - this._shaderDirty = true; - } - }, - }, - /** * Gets or sets the nearest sampling. * diff --git a/packages/engine/Specs/Scene/VoxelPrimitiveSpec.js b/packages/engine/Specs/Scene/VoxelPrimitiveSpec.js index 5cd5d1d7712c..d41713eca959 100644 --- a/packages/engine/Specs/Scene/VoxelPrimitiveSpec.js +++ b/packages/engine/Specs/Scene/VoxelPrimitiveSpec.js @@ -78,7 +78,6 @@ describe( }); toggleOption("depthTest", true, false); - toggleOption("jitter", false, true); toggleOption("nearestSampling", false, true); });