npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

glsl-transpose

1.0.0 • Public • Published

glsl-transpose

Transpose a matrix in GLSL.

Example

#pragma glslify: transpose require(glsl-transpose) 
 
void main() {
  mat3 m = mat3(123,
                456,
                789);
 
  mat3 mt = transpose(m);
 
  //now mt is the transpose of m 
}

Usage

Install with npm:

npm install glsl-transpose

Then use with glslify.

API

#pragma glslify: transpose require(glsl-transpose) 

mt = transpose(float|mat2|mat3|mat4 m)

Computes the transpose of a matrix

  • m is a matrix to transpose, either float, mat2, mat3 or mat4

Returns The transpose of m

License

(c) 2014 Mikola Lysenko. MIT License

install

npm i glsl-transpose

Downloadsweekly downloads

7

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability