tahamajs/RR / Codes /frontend /node_modules /@plotly /mapbox-gl /src /shaders /heatmap.fragment.glsl
| uniform highp float u_intensity; | |
| varying vec2 v_extrude; | |
| // Gaussian kernel coefficient: 1 / sqrt(2 * PI) | |
| void main() { | |
| // Kernel density estimation with a Gaussian kernel of size 5x5 | |
| float d = -0.5 * 3.0 * 3.0 * dot(v_extrude, v_extrude); | |
| float val = weight * u_intensity * GAUSS_COEF * exp(d); | |
| gl_FragColor = vec4(val, 1.0, 1.0, 1.0); | |
| gl_FragColor = vec4(1.0); | |
| } | |
Xet Storage Details
- Size:
- 555 Bytes
- Xet hash:
- 454fb297e512f9309a13f8880f9c97571f70076fbd0cfa24765a607a2b823176
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.