Remove unused 'resolution' uniform from fragment shader

This commit is contained in:
Frederic Junod
2019-07-01 10:00:55 +02:00
parent 24e4f41452
commit ed340d7e2c

View File

@@ -207,7 +207,6 @@ class Heatmap extends VectorLayer {
}`,
fragmentShader: `
precision mediump float;
uniform float u_resolution;
uniform float u_blurSlope;
varying vec2 v_texCoord;
@@ -226,10 +225,7 @@ class Heatmap extends VectorLayer {
}.bind(this),
u_blurSlope: function() {
return this.get(Property.RADIUS) / Math.max(1, this.get(Property.BLUR));
}.bind(this),
u_resolution: function(frameState) {
return frameState.viewState.resolution;
}
}.bind(this)
},
postProcesses: [
{