Comparing version 1.9.0 to 2.0.0
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
508837
526