We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce0a01a commit f908224Copy full SHA for f908224
targets/minimalRenderer.js
@@ -81,10 +81,15 @@ function fragToMinimalRenderer(canvas, fullFrag, updateUniforms) {
81
resizeCanvas();
82
window.addEventListener("resize", resizeCanvas);
83
const gl = canvas.getContext("webgl2");
84
+ // Learn more: https://github.com/mrdoob/three.js/pull/21358
85
const vertices = [
- -1.0, 1.0, 0.0, -1.0, -1.0, 0.0, 1.0, -1.0, 0.0, 1.0, 1.0, 0.0,
86
+ -1.0, -1.0, 0.0, 3.0, -1.0, 0.0, -1.0, 3.0, 0.0,
87
];
- const indices = [3, 2, 1, 3, 1, 0];
88
+ const indices = [0, 1, 2];
89
+ // const vertices = [
90
+ // -1.0, 1.0, 0.0, -1.0, -1.0, 0.0, 1.0, -1.0, 0.0, 1.0, 1.0, 0.0,
91
+ // ];
92
+ // const indices = [3, 2, 1, 3, 1, 0];
93
const vertex_buffer = gl.createBuffer();
94
gl.bindBuffer(gl.ARRAY_BUFFER, vertex_buffer);
95
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(vertices), gl.STATIC_DRAW);
0 commit comments