GLH.m4 showed what the matrices contain. Real projects hand that arithmetic to a tested library, and in raw WebGL code the usual choice is gl-matrix 5,695 , written by Brandon Jones and Colin MacKenzie IV (MIT licence, github.com/toji/gl-matrix (https://github.com/toji/gl-matrix 5,695 ), about 5,700 stars). Its current release is 3.4.4 (8 August 2025); a TypeScript rewrite, 4.0, has been in beta since 2023 (4.0.0-beta.2, April 2024).
MENU
gl-matrix
Matrix and Vector Math with gl-matrix