Spaces:
Paused
Paused
Download node_modules/@plotly/mapbox-gl/src/shaders/debug.vertex.glsl from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 354 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/mapbox-gl/src/shaders/debug.vertex.glsl
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@plotly/mapbox-gl/src/shaders/debug.vertex.glsl
-
curl -L -o debug.vertex.glsl https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/mapbox-gl/src/shaders/debug.vertex.glsl
354 Bytes
| attribute vec2 a_pos; | |
| varying vec2 v_uv; | |
| uniform mat4 u_matrix; | |
| uniform float u_overlay_scale; | |
| void main() { | |
| // This vertex shader expects a EXTENT x EXTENT quad, | |
| // The UV co-ordinates for the overlay texture can be calculated using that knowledge | |
| v_uv = a_pos / 8192.0; | |
| gl_Position = u_matrix * vec4(a_pos * u_overlay_scale, 0, 1); | |
| } | |