fix uTime uniform
This commit is contained in:
parent
c4569168c7
commit
c0d19f102a
2 changed files with 10 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue