Socket
Socket
Sign inDemoInstall

glsl-inverse

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    glsl-inverse

Invert a matrix in GLSL


Version published
Weekly downloads
82K
increased by14.33%
Maintainers
1
Install size
7.14 kB
Created
Weekly downloads
 

Readme

Source

glsl-inverse

Invert a matrix in GLSL.

Example

#pragma glslify: inverse = require(glsl-inverse)

void main() {
  mat3 m = mat3(1, 2, -3,
                4, 0, 6,
                7.1, 8, 9);

  mat3 mi = inverse(m);

  //now mi is the inverse of m
}

Usage

Install with npm:

npm install glsl-inverse

Then use with glslify.

API

#pragma glslify: inverse = require(glsl-inverse)

mi = inverse(float|mat2|mat3|mat4 m)

Computes inverse of m

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

Returns The inverse of m

License

(c) 2014 Mikola Lysenko. MIT License

Keywords

FAQs

Last updated on 10 Oct 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc