Add threshold geometry shader, refactor vertex and fragment shaders

This commit is contained in:
Dan Paulat 2023-08-18 00:30:27 -05:00
parent 5e1b1a5ba6
commit 69f93d6faf
9 changed files with 83 additions and 14 deletions

View file

@ -16,7 +16,7 @@ uniform mat4 uMapMatrix;
uniform vec2 uMapScreenCoord;
smooth out vec2 texCoord;
flat out vec4 modulate;
smooth out vec4 color;
vec2 latLngToScreenCoordinate(in vec2 latLng)
{
@ -31,7 +31,7 @@ void main()
{
// Pass the texture coordinate and color modulate to the fragment shader
texCoord = aTexCoord;
modulate = aModulate;
color = aModulate;
vec2 p = latLngToScreenCoordinate(aLatLong) - uMapScreenCoord;