mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 17:50:04 +00:00
Add threshold geometry shader, refactor vertex and fragment shaders
This commit is contained in:
parent
5e1b1a5ba6
commit
69f93d6faf
9 changed files with 83 additions and 14 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue