glsl-transpose
Transpose a matrix in GLSL.
Example
# transpose = require(glsl-transpose) void
Usage
Install with npm:
npm install glsl-transpose
Then use with glslify.
API
# transpose = require(glsl-transpose)
mt = transpose(float|mat2|mat3|mat4 m)
Computes the transpose of a matrix
m
is a matrix to transpose, eitherfloat, mat2, mat3
ormat4
Returns The transpose of m
License
(c) 2014 Mikola Lysenko. MIT License