Replies: 1 comment
-
I think I've figured this one out. There's one missing matrix, from screen coordinates into openGL clipspace that I had to create.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all! I'm working on a project that displays coordinates in a
regl
WebGL layer on top of a background map. I'm working on transitioning the map component to depend on maplibre, and I have a feeling I can use the various matrices that are attached to the map object to easily get the projection and view matrices that I need for WebGL.I'm studying the APIs and examples and code, but I thought maybe someone here has already solved this problem and can just point me to the relevant solution.
I've got a large buffer of lon/lat coordinates. I'm looking at transforming them in the shader to mercator coordinates using
like in the maplibre source code. Then I'd love to be able to pull two matrices from the map.transform layer that can move those mercator coordinates to screen coordinates. Is this easily possible?
Beta Was this translation helpful? Give feedback.
All reactions