mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 08:10:05 +00:00
Texture coordinate should be smooth, not flat
This commit is contained in:
parent
7b565d9c76
commit
82d761c939
2 changed files with 4 additions and 4 deletions
|
|
@ -15,8 +15,8 @@ uniform mat4 uMVPMatrix;
|
||||||
uniform mat4 uMapMatrix;
|
uniform mat4 uMapMatrix;
|
||||||
uniform vec2 uMapScreenCoord;
|
uniform vec2 uMapScreenCoord;
|
||||||
|
|
||||||
flat out vec2 texCoord;
|
smooth out vec2 texCoord;
|
||||||
flat out vec4 modulate;
|
flat out vec4 modulate;
|
||||||
|
|
||||||
vec2 latLngToScreenCoordinate(in vec2 latLng)
|
vec2 latLngToScreenCoordinate(in vec2 latLng)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ precision mediump float;
|
||||||
|
|
||||||
uniform sampler2D uTexture;
|
uniform sampler2D uTexture;
|
||||||
|
|
||||||
flat in vec2 texCoord;
|
smooth in vec2 texCoord;
|
||||||
flat in vec4 modulate;
|
flat in vec4 modulate;
|
||||||
|
|
||||||
layout (location = 0) out vec4 fragColor;
|
layout (location = 0) out vec4 fragColor;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue