Skip to content

Commit c6d9dcd

Browse files
authored
Merge branch 'master' into fix-flickering
2 parents 2888c3f + 35f810e commit c6d9dcd

13 files changed

+393
-8
lines changed
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{{#if claEnabled}}
2+
{{#if askForCla}}
3+
[![Please sign the CLA before we review this PR.](https://img.shields.io/badge/CLA-required-red.svg)](https://github.com/AnalyticalGraphicsInc/cesium/blob/master/CONTRIBUTING.md#contributor-license-agreement-cla)
4+
5+
Welcome to the Cesium community @{{ userName }}!
6+
7+
Can you please send in a [Contributor License Agreement](https://github.com/AnalyticalGraphicsInc/cesium/blob/master/CONTRIBUTING.md#contributor-license-agreement-cla) (CLA) so that we can review and merge this pull request?
8+
{{else}}
9+
![Signed CLA is on file.](https://img.shields.io/badge/CLA-signed-brightgreen.svg)
10+
11+
@{{ userName }}, thanks for the pull request! Maintainers, we have a signed CLA from @{{ userName }}, so you can review this at any time.
12+
{{/if}}
13+
{{else}}
14+
@{{ userName }}, thanks for the pull request!
15+
{{/if}}
16+
17+
{{#if askAboutChanges}}
18+
:warning: I noticed that [CHANGES.md]({{ repository_url }}/blob/master/CHANGES.md) has not been updated. If this change updates the public API in any way, fixes a bug, or makes any non-trivial update, please add a bullet point to `CHANGES.md` and comment on this pull request so we know it was updated. For more info, see the [Pull Request Guidelines]( https://github.com/AnalyticalGraphicsInc/cesium/blob/master/CONTRIBUTING.md#pull-request-guidelines).
19+
20+
{{/if}}
21+
{{#if askAboutThirdParty}}
22+
:warning: I noticed that a file in one of our ThirdParty folders (`{{ thirdPartyFolders }}`) has been added or modified. Please verify that it has a section in [LICENSE.md]({{ repository_url }}/blob/master/LICENSE.md) and that its license information is up to date with this new version. Once you do, please confirm by commenting on this pull request.
23+
24+
{{/if}}

.concierge/templates/signature.hbs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
3+
__I am a bot who helps you make Cesium awesome! [Contributions to my configuration are welcome.](https://github.com/AnalyticalGraphicsInc/cesium/tree/master/.concierge)__
4+
5+
:earth_africa: :earth_americas: :earth_asia:

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/.concierge
12
/.eslintcache
23
/.externalToolBuilders
34
/.gitattributes

Apps/Sandcastle/gallery/Labels.html

+17
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,17 @@
121121
});
122122
}
123123

124+
function setRightToLeft() {
125+
Sandcastle.declare(setRightToLeft);
126+
Cesium.Label.enableRightToLeftDetection = true; //Only needs to be set once at the beginning of the application.
127+
viewer.entities.add({
128+
position : Cesium.Cartesian3.fromDegrees(-75.1641667, 39.9522222),
129+
label : {
130+
text : 'Master (אדון): Hello\nתלמיד (student): שלום'
131+
}
132+
});
133+
}
134+
124135
Sandcastle.addToolbarMenu([{
125136
text : 'Add label',
126137
onselect : function() {
@@ -157,6 +168,12 @@
157168
scaleByDistance();
158169
Sandcastle.highlight(scaleByDistance);
159170
}
171+
}, {
172+
text : 'Set label with right-to-left language',
173+
onselect : function() {
174+
setRightToLeft();
175+
Sandcastle.highlight(setRightToLeft);
176+
}
160177
}]);
161178

162179
Sandcastle.reset = function() {

CHANGES.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Change Log
33

44
### 1.39 - 2017-11-01
55

6+
* Added support for right-to-left language detection in labels, currently Hebrew and Arabic are supported. To enable it, set `Cesium.Label.enableRightToLeftDetection = true` at the beginning of your application. [#5771](https://github.com/AnalyticalGraphicsInc/cesium/pull/5771)
67
* Added the ability to load Cesium's assets from the local file system if security permissions allow it. [#5830](https://github.com/AnalyticalGraphicsInc/cesium/issues/5830)
78
* Added function that inserts missing namespace declarations into KML files. [#5860](https://github.com/AnalyticalGraphicsInc/cesium/pull/5860)
89
* Added support for the layer.json `parentUrl` property in `CesiumTerrainProvider` to allow for compositing of tilesets.
@@ -16,6 +17,7 @@ Change Log
1617
* Improved CZML Reference Properties example [#5754](https://github.com/AnalyticalGraphicsInc/cesium/pull/5754)
1718
* Fixed bug with placemarks in imported KML: placemarks with no specified icon would be displayed with default icon. [#5819](https://github.com/AnalyticalGraphicsInc/cesium/issues/5819)
1819
* Fixed flickering artifacts on tilesets with thin walls. [#5940](https://github.com/AnalyticalGraphicsInc/cesium/pull/5940)
20+
* Fixed bright fog when terrain lighting is enabled and added `Fog.minimumBrightness` to affect how bright the fog will be when in complete darkness. [#5934](https://github.com/AnalyticalGraphicsInc/cesium/pull/5934)
1921

2022
### 1.38 - 2017-10-02
2123

@@ -143,7 +145,7 @@ Change Log
143145
* Updated glTF/glb MIME types. [#5420](https://github.com/AnalyticalGraphicsInc/cesium/issues/5420)
144146
* Added `Cesium.Math.randomBetween`.
145147
* Modified `defaultValue` to check for both `undefined` and `null`. [#5551](https://github.com/AnalyticalGraphicsInc/cesium/pull/5551)
146-
* The `throttleRequestByServer` function has been removed. Instead use `RequestScheduler.throttleRequest` to throttle requests.
148+
* The `throttleRequestByServer` function has been removed. Instead pass a `Request` object with `throttleByServer` set to `true` to any of following load functions: `loadWithXhr`, `loadArrayBuffer`, `loadBlob`, `loadImageViaBlob`, `loadText`, `loadJson`, `loadJsonp`, `loadXML`, `loadImageFromTypedArray`, `loadImage`, `loadCRN`, and `loadKTX`.
147149

148150
### 1.34 - 2017-06-01
149151

CONTRIBUTORS.md

+3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu
9292
* [Jannes Bolling](https://github.com/jbo023)
9393
* [Logilab](https://www.logilab.fr/)
9494
* [Florent Cayré](https://github.com/fcayre/)
95+
* [webiks](https://www.webiks.com)
96+
* [Hod Bauer](https://github.com/hodbauer)
97+
* [Yonatan Kra](https://github.com/yonatankra)
9598
* [Novetta](http://www.novetta.com/)
9699
* [Joshua Bernstein](https://github.com/jbernstein/)
97100
* [Natanael Rivera](https://github.com/nrivera-Novetta/)

Source/Scene/Fog.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ define([
2424
* @default true
2525
*/
2626
this.enabled = true;
27-
2827
/**
2928
* A scalar that determines the density of the fog. Terrain that is in full fog are culled.
3029
* The density of the fog increases as this number approaches 1.0 and becomes less dense as it approaches zero.
@@ -44,6 +43,13 @@ define([
4443
* @default 2.0
4544
*/
4645
this.screenSpaceErrorFactor = 2.0;
46+
/**
47+
* The minimum brightness of the fog color from lighting. A value of 0.0 can cause the fog to be completely black. A value of 1.0 will not affect
48+
* the brightness at all.
49+
* @type {Number}
50+
* @default 0.1
51+
*/
52+
this.minimumBrightness = 0.1;
4753
}
4854

4955
// These values were found by sampling the density at certain views and finding at what point culled tiles impacted the view at the horizon.
@@ -135,6 +141,7 @@ define([
135141

136142
frameState.fog.density = density;
137143
frameState.fog.sse = this.screenSpaceErrorFactor;
144+
frameState.fog.minimumBrightness = this.minimumBrightness;
138145
};
139146

140147
return Fog;

Source/Scene/FrameState.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,14 @@ define([
208208
* @type {Number}
209209
* @default undefined
210210
*/
211-
sse : undefined
211+
sse : undefined,
212+
/**
213+
* The minimum brightness of terrain with fog applied.
214+
*
215+
* @type {Number}
216+
* @default undefined
217+
*/
218+
minimumBrightness : undefined
212219
};
213220

214221
/**

Source/Scene/GlobeSurfaceTileProvider.js

+3
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,9 @@ define([
849849
u_dayTextureSplit : function() {
850850
return this.properties.dayTextureSplit;
851851
},
852+
u_minimumBrightness : function() {
853+
return frameState.fog.minimumBrightness;
854+
},
852855

853856
// make a separate object so that changes to the properties are seen on
854857
// derived commands that combine another uniform map with this one.

0 commit comments

Comments
 (0)