Fix x/y pixel offsets of placefile icons

This commit is contained in:
Dan Paulat 2023-08-05 00:44:37 -05:00
parent eaf5089526
commit e66c202edf
2 changed files with 18 additions and 15 deletions

View file

@ -37,6 +37,6 @@ void main()
vec2 p = latLngToScreenCoordinate(aLatLong) - uMapScreenCoord;
// Transform the position to screen coordinates
gl_Position = uMapMatrix * vec4(p, 0.0f, 1.0f) -
gl_Position = uMapMatrix * vec4(p, 0.0f, 1.0f) +
uMVPMatrix * vec4(aXYOffset, 0.0f, 0.0f);
}