Remove unused 'resolution' uniform from fragment shader
This commit is contained in:
@@ -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: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user