fix uTime uniform

This commit is contained in:
do butterflies cry? 2026-01-31 11:32:09 +10:00
parent c4569168c7
commit c0d19f102a
2 changed files with 10 additions and 7 deletions

View file

@ -5,7 +5,7 @@ function drawScene(gl, programInfo, buffers, time) {
// NOTE: this is how width/height is taken
// const aspect = gl.canvas.clientWidth / gl.canvas.clientHeight;
// Tell WebGL how to pull out the positions from the position
// buffer into the vertexPosition attribute.
setPositionAttribute(gl, buffers, programInfo);
@ -17,7 +17,7 @@ function drawScene(gl, programInfo, buffers, time) {
gl.uniform1f(
programInfo.uniformLocations.time,
time,
);
);
{
const offset = 0;