Allow sampling data from neighboring pixels

This commit is contained in:
Andreas Hocevar
2021-08-14 23:05:19 +02:00
parent 324148c606
commit 7acd5338c9
8 changed files with 250 additions and 21 deletions

View File

@@ -215,6 +215,10 @@ function parseStyle(style, bandCount) {
varying vec2 v_textureCoord;
uniform float ${Uniforms.TRANSITION_ALPHA};
uniform float ${Uniforms.TEXTURE_PIXEL_WIDTH};
uniform float ${Uniforms.TEXTURE_PIXEL_HEIGHT};
uniform float ${Uniforms.RESOLUTION};
uniform float ${Uniforms.ZOOM};
${uniformDeclarations.join('\n')}