File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1872,14 +1872,17 @@ define([
1872
1872
colorToAlpha = uniformMapProperties . colorsToAlpha [ numberOfDayTextures ] = new Cartesian4 ( ) ;
1873
1873
}
1874
1874
1875
- applyColorToAlpha = defined ( imageryLayer . colorToAlpha ) && imageryLayer . colorToAlphaThreshold > 0.0 ;
1875
+ var hasColorToAlpha = defined ( imageryLayer . colorToAlpha ) && imageryLayer . colorToAlphaThreshold > 0.0 ;
1876
+ applyColorToAlpha = applyColorToAlpha || hasColorToAlpha ;
1876
1877
1877
- if ( applyColorToAlpha ) {
1878
+ if ( hasColorToAlpha ) {
1878
1879
var color = imageryLayer . colorToAlpha ;
1879
1880
colorToAlpha . x = color . red ;
1880
1881
colorToAlpha . y = color . green ;
1881
1882
colorToAlpha . z = color . blue ;
1882
1883
colorToAlpha . w = imageryLayer . colorToAlphaThreshold ;
1884
+ } else {
1885
+ colorToAlpha . w = - 1.0 ;
1883
1886
}
1884
1887
1885
1888
if ( defined ( imagery . credits ) ) {
You can’t perform that action at this time.
0 commit comments