Skip to content

Commit

Permalink
dist/5.x -> dist/6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Sep 7, 2024
1 parent ff06f0e commit f95b9de
Show file tree
Hide file tree
Showing 56 changed files with 74 additions and 74 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Not including the shaders (which is a simple quad shader) here's the entire code

```html
<canvas id="c"></canvas>
<script src="../dist/5.x/twgl-full.min.js"></script>
<script src="../dist/6.x/twgl-full.min.js"></script>
<script>
const gl = document.getElementById("c").getContext("webgl");
const programInfo = twgl.createProgramInfo(gl, ["vs", "fs"]);
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h2>TL;DR</h2>
<h2>The tiniest example</h2>
<p>Not including the shaders (which is a simple quad shader) here's the entire code</p>
<pre class="prettyprint source lang-html"><code>&lt;canvas id=&quot;c&quot;>&lt;/canvas>
&lt;script src=&quot;../dist/5.x/twgl-full.min.js&quot;>&lt;/script>
&lt;script src=&quot;../dist/6.x/twgl-full.min.js&quot;>&lt;/script>
&lt;script>
const gl = document.getElementById(&quot;c&quot;).getContext(&quot;webgl&quot;);
const programInfo = twgl.createProgramInfo(gl, [&quot;vs&quot;, &quot;fs&quot;]);
Expand Down
2 changes: 1 addition & 1 deletion examples/2d-array-texture.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
}
</script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';

function main() {
twgl.setDefaults({attribPrefix: "a_"});
Expand Down
2 changes: 1 addition & 1 deletion examples/2d-lines.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</body>
<script src="../3rdparty/chroma.min.js"></script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';
const m4 = twgl.m4;
twgl.setDefaults({attribPrefix: "a_"});
const gl = document.getElementById("c").getContext("webgl");
Expand Down
2 changes: 1 addition & 1 deletion examples/2d-rotation.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<canvas id="canvasgl" style="height: 100vh; width: 100vw;"></canvas>
<div id="b" style="position: absolute; top: 10px; width: 100%; text-align: center; z-index: 2;"><a href="http://twgljs.org">twgl.js</a> - 2d-rotation</div>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';

const vsource = `
precision mediump float;
Expand Down
4 changes: 2 additions & 2 deletions examples/3d-texture-volume-no-buffers.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@
</div>
</div>
</body>
<script src="../dist/5.x/twgl-full.min.js"></script>>
<script src="../dist/6.x/twgl-full.min.js"></script>>
<script src="../3rdparty/chroma.min.js"></script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';

function main() {
const m4 = twgl.m4;
Expand Down
4 changes: 2 additions & 2 deletions examples/3d-texture-volume.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@
</div>
</div>
</body>
<script src="../dist/5.x/twgl-full.min.js"></script>>
<script src="../dist/6.x/twgl-full.min.js"></script>>
<script src="../3rdparty/chroma.min.js"></script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';

function main() {
const m4 = twgl.m4;
Expand Down
4 changes: 2 additions & 2 deletions examples/3d-textures-tone-mapping.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
<div>style: <span id="name"></span></div>
</div>
</body>
<script src="../dist/5.x/twgl-full.min.js"></script>>
<script src="../dist/6.x/twgl-full.min.js"></script>>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';

function main() {
const m4 = twgl.m4;
Expand Down
2 changes: 1 addition & 1 deletion examples/background.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</head>
<body>
<canvas id="canvas"></canvas>
<script src="/dist/5.x/twgl-full.min.js"></script>
<script src="/dist/6.x/twgl-full.min.js"></script>
<script src="/resources/js/background.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion examples/camera.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
</script>
<script src="../3rdparty/chroma.min.js"></script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';

let playing = false;
const video = document.createElement("video");
Expand Down
2 changes: 1 addition & 1 deletion examples/clamped-array.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
</script>
<script src="../3rdparty/chroma.min.js"></script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';
twgl.setDefaults({attribPrefix: "a_"});
const m4 = twgl.m4;
const gl = document.querySelector("#c").getContext("webgl");
Expand Down
2 changes: 1 addition & 1 deletion examples/concat.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
</script>
<script src="../3rdparty/chroma.min.js"></script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';
twgl.setDefaults({attribPrefix: "a_"});
const m4 = twgl.m4;
const gl = document.querySelector("#c").getContext("webgl");
Expand Down
4 changes: 2 additions & 2 deletions examples/constant-attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@
gl_FragColor = v_color;
}
</script>
<script src="../dist/5.x/twgl-full.js"></script>
<script src="../dist/6.x/twgl-full.js"></script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';
const m4 = twgl.m4;
const gl = document.querySelector("#c").getContext("webgl", { alpha: false });
const programInfo = twgl.createProgramInfo(gl, ["vs", "fs"]);
Expand Down
2 changes: 1 addition & 1 deletion examples/crossorigin.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<div id="b"><a href="http://twgljs.org">twgl.js</a> - crossorigin</div>
</body>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';
import vs from './js/phong.vs.js';
import fs from './js/phong.fs.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/dynamic-buffers.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
</body>
<script src="../3rdparty/audiostreamsource.min.js"></script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';

/* global audioStreamSource */

Expand Down
2 changes: 1 addition & 1 deletion examples/fov-checker.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
</script>
<script src="../3rdparty/chroma.min.js"></script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';
const m4 = twgl.m4;
twgl.setDefaults({attribPrefix: "a_"});
const gl = document.querySelector("#c").getContext("webgl");
Expand Down
2 changes: 1 addition & 1 deletion examples/gpgpu-particles.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<canvas id="canvasgl" style="height: 100vh; width: 100vw; display: block;"></canvas>
<div id="b" style="position: absolute; top: 10px; width: 100%; text-align: center; z-index: 2;"><a href="http://twgljs.org">twgl.js</a> - GPGPU Particles.</div>

<script src="../dist/5.x/twgl.min.js"></script>
<script src="../dist/6.x/twgl.min.js"></script>
<script>
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion examples/instancing.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
}
</script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';
function main() {
const m4 = twgl.m4;
const gl = document.getElementById("c").getContext("webgl");
Expand Down
2 changes: 1 addition & 1 deletion examples/itemlist.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
</script>
<script src="../3rdparty/chroma.min.js"></script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';
twgl.setDefaults({attribPrefix: "a_"});
const m4 = twgl.m4;
const gl = document.querySelector("#c").getContext("webgl");
Expand Down
2 changes: 1 addition & 1 deletion examples/js/amd-compiled.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* global require */

require([
'../../dist/5.x/twgl-full.min',
'../../dist/6.x/twgl-full.min',
'../../3rdparty/chroma.min',
], function(
twgl,
Expand Down
4 changes: 2 additions & 2 deletions examples/js/browserified-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -10606,7 +10606,7 @@ function createVAOFromBufferInfo(gl, programInfo, bufferInfo) {
/* global require */

// this would be require('twgl') in a real example
const twgl = require('../../dist/5.x/twgl-full'); /* eslint-disable-line */
const twgl = require('../../dist/6.x/twgl-full'); /* eslint-disable-line */
const chroma = require('../../3rdparty/chroma.min'); /* eslint-disable-line */
const m4 = twgl.m4;
const primitives = twgl.primitives;
Expand Down Expand Up @@ -10713,4 +10713,4 @@ requestAnimationFrame(render);



},{"../../3rdparty/chroma.min":1,"../../dist/5.x/twgl-full":2}]},{},[3]);
},{"../../3rdparty/chroma.min":1,"../../dist/6.x/twgl-full":2}]},{},[3]);
2 changes: 1 addition & 1 deletion examples/js/browserify-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* global require */

// this would be require('twgl') in a real example
const twgl = require('../../dist/5.x/twgl-full'); /* eslint-disable-line */
const twgl = require('../../dist/6.x/twgl-full'); /* eslint-disable-line */
const chroma = require('../../3rdparty/chroma.min'); /* eslint-disable-line */
const m4 = twgl.m4;
const primitives = twgl.primitives;
Expand Down
2 changes: 1 addition & 1 deletion examples/js/offscreencanvas.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import * as twgl from '../../dist/5.x/twgl-full.module.js';
import * as twgl from '../../dist/6.x/twgl-full.module.js';

const onePointVS = `
uniform mat4 u_worldViewProjection;
Expand Down
2 changes: 1 addition & 1 deletion examples/js/shadertoy-harness.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ window.addEventListener('load', function() {
script.type = 'text/javascript';
script.async = true;
script.onload = main;
script.src = 'https://twgljs.org/dist/5.x/twgl.min.js';
script.src = 'https://twgljs.org/dist/6.x/twgl.min.js';
d.getElementsByTagName('head')[0].appendChild(script);
}(document));
});
Expand Down
2 changes: 1 addition & 1 deletion examples/js/vertexshaderart-harness.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ window.addEventListener('load', function() {
script.type = 'text/javascript';
script.async = true;
script.onload = main;
script.src = 'https://twgljs.org/dist/5.x/twgl.min.js';
script.src = 'https://twgljs.org/dist/6.x/twgl.min.js';
d.getElementsByTagName('head')[0].appendChild(script);
}(document));
});
Expand Down
2 changes: 1 addition & 1 deletion examples/kaleidoscope.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
<script src="../3rdparty/chroma.min.js"></script>
<script type="module">
/*eslint no-unused-vars:0*/
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';

twgl.setDefaults({attribPrefix: "a_"});
const m4 = twgl.m4;
Expand Down
2 changes: 1 addition & 1 deletion examples/mat4-attribute.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
}
</script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';
twgl.setDefaults({attribPrefix: "a_"});
const m4 = twgl.m4;
const gl = document.querySelector("#c").getContext("webgl");
Expand Down
2 changes: 1 addition & 1 deletion examples/modules/modules.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as twgl from '../../dist/5.x/twgl-full.module.js';
import * as twgl from '../../dist/6.x/twgl-full.module.js';

const m4 = twgl.m4;
const primitives = twgl.primitives;
Expand Down
2 changes: 1 addition & 1 deletion examples/mulitple-render-targets-3d-texture.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
</div>
</body>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';

function main() {
const gl = document.getElementById("c").getContext("webgl2");
Expand Down
2 changes: 1 addition & 1 deletion examples/no-box-skybox.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
}
</script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';
const $ = document.getElementById.bind(document);
twgl.setDefaults({attribPrefix: "a_"});
const m4 = twgl.m4;
Expand Down
2 changes: 1 addition & 1 deletion examples/packed-arrays.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
</script>
<script src="../3rdparty/chroma.min.js"></script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';
twgl.setDefaults({attribPrefix: "a_"});
const m4 = twgl.m4;
const gl = document.querySelector("#c").getContext("webgl");
Expand Down
2 changes: 1 addition & 1 deletion examples/picking.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
</script>
<script src="../3rdparty/chroma.min.js"></script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';
twgl.setDefaults({attribPrefix: "a_"});
const m4 = twgl.m4;
const gl = document.querySelector("#c").getContext("webgl");
Expand Down
2 changes: 1 addition & 1 deletion examples/primitives.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
</script>
<script src="../3rdparty/chroma.min.js"></script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';
twgl.setDefaults({attribPrefix: "a_"});
const m4 = twgl.m4;
const gl = document.querySelector("#c").getContext("webgl");
Expand Down
2 changes: 1 addition & 1 deletion examples/samplers.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
</script>
<script src="../3rdparty/chroma.min.js"></script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';

function main() {
twgl.setDefaults({attribPrefix: "a_"});
Expand Down
2 changes: 1 addition & 1 deletion examples/sharedarraybuffer.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
}
</script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';
const m4 = twgl.m4;

function main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-packed-arrays.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
}
</script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';
const gl = document.querySelector("#c").getContext("webgl");
const programInfo = twgl.createProgramInfo(gl, ["vs", "fs"]);

Expand Down
2 changes: 1 addition & 1 deletion examples/text.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
</script>
<script src="../3rdparty/chroma.min.js"></script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';
twgl.setDefaults({attribPrefix: "a_"});
const m4 = twgl.m4;
const gl = document.querySelector("#c").getContext("webgl");
Expand Down
2 changes: 1 addition & 1 deletion examples/textures-typescript.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as twgl from '../dist/5.x/twgl-full.js';
import * as twgl from '../dist/6.x/twgl-full.js';
import * as chroma from '../3rdparty/chroma.min.js';

const onePointVS = `
Expand Down
2 changes: 1 addition & 1 deletion examples/textures.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
</script>
<script src="../3rdparty/chroma.min.js"></script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';
twgl.setDefaults({attribPrefix: "a_"});
const m4 = twgl.m4;
const gl = document.querySelector("#c").getContext("webgl");
Expand Down
2 changes: 1 addition & 1 deletion examples/tiny.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
}
</script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';
const gl = document.querySelector("#c").getContext("webgl");
const programInfo = twgl.createProgramInfo(gl, ["vs", "fs"]);

Expand Down
2 changes: 1 addition & 1 deletion examples/transform-feedback-particles-va.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</body>
<script src="../3rdparty/chroma.min.js"></script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';

const tfVS = `#version 300 es
in vec2 a_positionIn;
Expand Down
2 changes: 1 addition & 1 deletion examples/transform-feedback-particles.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</body>
<script src="../3rdparty/chroma.min.js"></script>
<script type="module">
import * as twgl from '../dist/5.x/twgl-full.module.js';
import * as twgl from '../dist/6.x/twgl-full.module.js';

const tfVS = `#version 300 es
in vec2 a_positionIn;
Expand Down
Loading

0 comments on commit f95b9de

Please sign in to comment.