Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

twgl.js

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twgl.js - npm Package Compare versions

Comparing version 1.9.0 to 2.0.0

2

package.json
{
"name": "twgl.js",
"version": "1.9.0",
"version": "2.0.0",
"description": "A Tiny WebGL helper library",

@@ -5,0 +5,0 @@ "main": "dist/twgl-full.js",

@@ -8,2 +8,6 @@ TWGL: A Tiny WebGL helper Library<div id="pronouce" style="font-size: xx-small;">[rhymes with wiggle]</div>

## Note: Minor API Changes in 2.x
[See Changelist](https://github.com/greggman/twgl.js/blob/master/CHANGELIST.md)
## TL;DR

@@ -20,3 +24,3 @@

<canvas id="c"></canvas>
<script src="../dist/twgl-full.min.js"></script>
<script src="../dist/2.x/twgl-full.min.js"></script>
<script>

@@ -43,3 +47,3 @@ var gl = twgl.getWebGLContext(document.getElementById("c"));

twgl.setUniforms(programInfo, uniforms);
twgl.drawBufferInfo(gl, gl.TRIANGLES, bufferInfo);
twgl.drawBufferInfo(gl, bufferInfo);

@@ -182,3 +186,3 @@ requestAnimationFrame(render);

uniforms.u_worldInverseTranspose = m4.transpose(m4.inverse(world));
uniforms.u_worldViewProjection = m4.multiply(world, viewProjection);
uniforms.u_worldViewProjection = m4.multiply(viewProjection, world);

@@ -211,3 +215,3 @@ twgl.setUniforms(programInfo, uniforms);

gl.uniformMatrix4fv(u_worldInverseTransposeLoc, false, m4.transpose(m4.inverse(world)));
gl.uniformMatrix4fv(u_worldViewProjectionLoc, false, m4.multiply(world, viewProjection));
gl.uniformMatrix4fv(u_worldViewProjectionLoc, false, m4.multiply(viewProjection, world));
```

@@ -214,0 +218,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc