Texture coordinate should be smooth, not flat

This commit is contained in:
Dan Paulat 2022-10-04 23:10:05 -05:00
parent 7b565d9c76
commit 82d761c939
2 changed files with 4 additions and 4 deletions

View file

@ -15,8 +15,8 @@ uniform mat4 uMVPMatrix;
uniform mat4 uMapMatrix;
uniform vec2 uMapScreenCoord;
flat out vec2 texCoord;
flat out vec4 modulate;
smooth out vec2 texCoord;
flat out vec4 modulate;
vec2 latLngToScreenCoordinate(in vec2 latLng)
{

View file

@ -5,8 +5,8 @@ precision mediump float;
uniform sampler2D uTexture;
flat in vec2 texCoord;
flat in vec4 modulate;
smooth in vec2 texCoord;
flat in vec4 modulate;
layout (location = 0) out vec4 fragColor;