tahamajs/RR / Codes /frontend /node_modules /@plotly /mapbox-gl /src /shaders /collision_box.fragment.glsl
| varying float v_placed; | |
| varying float v_notUsed; | |
| void main() { | |
| float alpha = 0.5; | |
| // Red = collision, hide label | |
| gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0) * alpha; | |
| // Blue = no collision, label is showing | |
| if (v_placed > 0.5) { | |
| gl_FragColor = vec4(0.0, 0.0, 1.0, 0.5) * alpha; | |
| } | |
| if (v_notUsed > 0.5) { | |
| // This box not used, fade it out | |
| gl_FragColor *= .1; | |
| } | |
| } |
Xet Storage Details
- Size:
- 418 Bytes
- Xet hash:
- 2288e0b237c9370feb8e497dd3f78322aa30e85c2f1bfc0b98fa72d972a15f7b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.