diff --git a/examples/cube.js b/examples/cube.js index dd828b3..cbd171c 100644 --- a/examples/cube.js +++ b/examples/cube.js @@ -353,7 +353,7 @@ initBuffers(); gl.clearColor(255, 0, 0, 1); gl.enable(gl.DEPTH_TEST); -const tick = (timeNow) => { +const tick = () => { animate(); drawScene(); document.requestAnimationFrame(tick); diff --git a/examples/libs/.eslintrc.json b/examples/libs/.eslintrc.json deleted file mode 100644 index d2ea501..0000000 --- a/examples/libs/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ignorePatterns": ["*.js"] -} \ No newline at end of file diff --git a/examples/libs/glMatrix-0.9.5.min.js b/examples/libs/glMatrix-0.9.5.min.js index 299244f..1e1d4c7 100644 --- a/examples/libs/glMatrix-0.9.5.min.js +++ b/examples/libs/glMatrix-0.9.5.min.js @@ -1,3 +1,4 @@ +/* eslint-disable */ //glMatrix v0.9.5 glMatrixArrayType=typeof Float32Array!="undefined"?Float32Array:typeof WebGLFloatArray!="undefined"?WebGLFloatArray:Array;var vec3={};vec3.create=function(a){var b=new glMatrixArrayType(3);if(a){b[0]=a[0];b[1]=a[1];b[2]=a[2]}return b};vec3.set=function(a,b){b[0]=a[0];b[1]=a[1];b[2]=a[2];return b};vec3.add=function(a,b,c){if(!c||a==c){a[0]+=b[0];a[1]+=b[1];a[2]+=b[2];return a}c[0]=a[0]+b[0];c[1]=a[1]+b[1];c[2]=a[2]+b[2];return c}; vec3.subtract=function(a,b,c){if(!c||a==c){a[0]-=b[0];a[1]-=b[1];a[2]-=b[2];return a}c[0]=a[0]-b[0];c[1]=a[1]-b[1];c[2]=a[2]-b[2];return c};vec3.negate=function(a,b){b||(b=a);b[0]=-a[0];b[1]=-a[1];b[2]=-a[2];return b};vec3.scale=function(a,b,c){if(!c||a==c){a[0]*=b;a[1]*=b;a[2]*=b;return a}c[0]=a[0]*b;c[1]=a[1]*b;c[2]=a[2]*b;return c};