nova-header-nav / node_modules /@plotly /mapbox-gl /src /shaders /heatmap_texture.fragment.glsl
Leon4gr45's picture
Upload folder using huggingface_hub (part 8)
fcf3b03 verified
Raw
History Blame Contribute Delete
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;
#ifdef OVERDRAW_INSPECTOR
gl_FragColor = vec4(0.0);
#endif
}