Skip to content

Wrong transpose for mat4 #15

@Dysman

Description

@Dysman

Into matrix.glsl the transpose missing the 3 column.

Below is the corrected one.

mat4 transpose(mat4 m) {
return mat4( m[0][0], m[1][0], m[2][0], m[3][0], // new col 0
m[0][1], m[1][1], m[2][1], m[3][1], // new col 1
m[0][2], m[1][2], m[2][2], m[3][2], // new col 2
m[0][3], m[1][3], m[2][3], m[3][3] // new col 3
);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions