Skip to content

Commit

Permalink
As IE does not support EXT_frag_depth webGL extension i added a check…
Browse files Browse the repository at this point in the history
… to see if it is available. If not we use another render state configuration wich solves the issue of alpha adding up, but creates another issue of depth order of points.
  • Loading branch information
santilland committed May 2, 2016
1 parent 7adc8f7 commit ada0251
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/scripts/contrib/Cesium/CesiumView.js
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,17 @@ define(['backbone.marionette',
that.activeCollections.push(obj.id);
if (settings[obj.id].band == 'F') {
that.features_collection[obj.id] = new Cesium.PointPrimitiveCollection();


if(!that.map.scene.context._gl.getExtension('EXT_frag_depth')){
that.features_collection[obj.id]._rs = Cesium.RenderState.fromCache({
depthTest : {
enabled : true,
func : Cesium.DepthFunction.LESS
},
depthMask : false,
blending : Cesium.BlendingState.ALPHA_BLEND
});
}
}else if(
settings[obj.id].band == 'B_NEC' ||
settings[obj.id].band == 'SIFM' ||
Expand Down

0 comments on commit ada0251

Please sign in to comment.