You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGES.md
+8
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,14 @@ Change Log
3
3
4
4
### 1.45 - 2018-05-01
5
5
6
+
##### Breaking Changes :mega:
7
+
*`Camera.distanceToBoundingSphere` now returns the signed distance to the bounding sphere. Positive values indicate that the bounding sphere is in the positive half-plane of the camera position and view direction while a negative value indicates it is in the negative half-plane.
8
+
9
+
##### Additions :tada:
10
+
* Added option `logDepthBuffer` to `Viewer`. With this option there is typically a single frustum using logarithmic depth rendered. This increases performance by issuing less draw calls to the GPU and helps to avoid artifacts on the connection of two frustums. [#5851](https://github.com/AnalyticalGraphicsInc/cesium/pull/5851)
11
+
* When a log depth buffer is supported, the frustum near and far planes default to `0.1` and `1e10` respectively.
12
+
* Added `Math.log2` to compute the base 2 logarithm of a number.
13
+
6
14
##### Fixes :wrench:
7
15
* Fixed bugs in `TimeIntervalCollection.removeInterval`. [#6418](https://github.com/AnalyticalGraphicsInc/cesium/pull/6418).
8
16
* Fixed glTF support to handle meshes with and without tangent vectors, and with/without morph targets, sharing one material. [#6421](https://github.com/AnalyticalGraphicsInc/cesium/pull/6421)
Copy file name to clipboardexpand all lines: Source/Scene/Camera.js
+13-4
Original file line number
Diff line number
Diff line change
@@ -2574,10 +2574,13 @@ define([
2574
2574
varscratchProj=newCartesian3();
2575
2575
2576
2576
/**
2577
-
* Return the distance from the camera to the front of the bounding sphere.
2577
+
* Return the signed distance from the camera to the front of the bounding sphere.
2578
+
* <p>
2579
+
* Positive values indicate that the bounding sphere is in the positive half-plane of the camera position and view direction while a negative value indicates it is in the negative half-plane.
2580
+
* </p>
2578
2581
*
2579
2582
* @param {BoundingSphere} boundingSphere The bounding sphere in world coordinates.
2580
-
* @returns {Number} The distance to the bounding sphere.
2583
+
* @returns {Number} The signed distance to the bounding sphere.
0 commit comments