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/skybox.vertex.glsl
attribute highp vec3 a_pos_3f;

uniform lowp mat4 u_matrix;

varying highp vec3 v_uv;

void main() {
    const mat3 half_neg_pi_around_x = mat3(1.0, 0.0,  0.0,
                                           0.0, 0.0, -1.0,
                                           0.0, 1.0,  0.0);

    v_uv = half_neg_pi_around_x * a_pos_3f;
    vec4 pos = u_matrix * vec4(a_pos_3f, 1.0);

    // Enforce depth to be 1.0
    gl_Position = pos.xyww;
}