Skip to content

Commit

Permalink
Merge pull request #96 from ESA-VirES/ie_renderissue
Browse files Browse the repository at this point in the history
Introduced check for specific webGL extension with new fallback
  • Loading branch information
santilland committed May 2, 2016
2 parents 7adc8f7 + ada0251 commit 2d7269b
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 2d7269b

Please sign in to comment.