MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/snap.cafsinfotech.in/node_modules/mapbox-gl/src/shaders/collision_box.fragment.glsl
varying float v_placed;
varying float v_notUsed;

void main() {
    vec4 red  = vec4(1.0, 0.0, 0.0, 1.0); // Red = collision, hide label
    vec4 blue = vec4(0.0, 0.0, 1.0, 0.5); // Blue = no collision, label is showing

    gl_FragColor  = mix(red, blue, step(0.5, v_placed)) * 0.5;
    gl_FragColor *= mix(1.0, 0.1, step(0.5, v_notUsed));
}