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