glsl-inverse

WebJar for glsl-inverse

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

glsl-inverse
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

glsl-inverse
WebJar for glsl-inverse
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/glslify/glsl-inverse

Download glsl-inverse

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/glsl-inverse/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>glsl-inverse</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/glsl-inverse/
implementation 'org.webjars.npm:glsl-inverse:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/glsl-inverse/
implementation ("org.webjars.npm:glsl-inverse:1.0.0")
'org.webjars.npm:glsl-inverse:jar:1.0.0'
<dependency org="org.webjars.npm" name="glsl-inverse" rev="1.0.0">
  <artifact name="glsl-inverse" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='glsl-inverse', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "glsl-inverse" % "1.0.0"
[org.webjars.npm/glsl-inverse "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

org.webjars.npm

Versions

Version
1.0.0