Spaces:
Paused
Paused
Download node_modules/@plotly/mapbox-gl/src/shaders/heatmap_texture.fragment.glsl from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 322 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/mapbox-gl/src/shaders/heatmap_texture.fragment.glsl
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@plotly/mapbox-gl/src/shaders/heatmap_texture.fragment.glsl
-
curl -L -o heatmap_texture.fragment.glsl https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/mapbox-gl/src/shaders/heatmap_texture.fragment.glsl
322 Bytes
| uniform sampler2D u_image; | |
| uniform sampler2D u_color_ramp; | |
| uniform float u_opacity; | |
| varying vec2 v_pos; | |
| void main() { | |
| float t = texture2D(u_image, v_pos).r; | |
| vec4 color = texture2D(u_color_ramp, vec2(t, 0.5)); | |
| gl_FragColor = color * u_opacity; | |
| gl_FragColor = vec4(0.0); | |
| } | |