<commit_before>#pragma glslify: getNormalMatrix = require(./chunks/getNormalMatrix)
#pragma glslify: inverse = require(./chunks/inverse)
#pragma glslify: transpose = require(./chunks/transpose)

vec4 applyTransform(vec4 pos) {
    mat4 MVMatrix = view * transform;

    pos.x += 1.0;
    pos.y -= 1.0;
    pos.xyz *= size * 0.5;
    pos.y *= -1.0;

    MVMatrix[0][1] *= -1.0;
    MVMatrix[1][1] *= -1.0;
    MVMatrix[2][1] *= -1.0;
    MVMatrix[3][1] *= -1.0;

    mat4 MVPMatrix = perspective * MVMatrix;

    v_Position = (MVMatrix * pos).xyz;
    pos = MVPMatrix * pos;

    pos.x /= (resolution.x * 0.5);
    pos.y /= (resolution.y * 0.5);
    pos.x -= 1.0;
    pos.y += 1.0;
    pos.z *= -0.00001;

    return pos;<commit_msg>Fix: Inverting MVMatrix after v_Position instantiation<commit_after>#pragma glslify: getNormalMatrix = require(./chunks/getNormalMatrix)
#pragma glslify: inverse = require(./chunks/inverse)
#pragma glslify: transpose = require(./chunks/transpose)

vec4 applyTransform(vec4 pos) {
    mat4 MVMatrix = view * transform;

    pos.x += 1.0;
    pos.y -= 1.0;
    pos.xyz *= size * 0.5;
    pos.y *= -1.0;

    v_Position = (MVMatrix * pos).xyz;
    
    MVMatrix[0][1] *= -1.0;
    MVMatrix[1][1] *= -1.0;
    MVMatrix[2][1] *= -1.0;
    MVMatrix[3][1] *= -1.0;

    mat4 MVPMatrix = perspective * MVMatrix;

    pos = MVPMatrix * pos;

    pos.x /= (resolution.x * 0.5);
    pos.y /= (resolution.y * 0.5);
    pos.x -= 1.0;
    pos.y += 1.0;
    pos.z *= -0.00001;

    return pos;
{'fraction_non_alphanumeric': 0.18344370860927153, 'fraction_numerical': 0.05562913907284768, 'mean_word_length': 2.5058004640371228, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7281611', 'n_tokens_mistral': 664, 'n_tokens_neox': 602, 'n_words': 124}