add uResolution uniform2f
This commit is contained in:
parent
9681cc76fa
commit
6ffcfa692e
3 changed files with 15 additions and 9 deletions
|
|
@ -18,6 +18,12 @@ function drawScene(gl, programInfo, buffers, time) {
|
|||
programInfo.uniformLocations.time,
|
||||
time,
|
||||
);
|
||||
// Viewport resolution in pixels
|
||||
gl.uniform2f(
|
||||
programInfo.uniformLocations.resolution,
|
||||
gl.drawingBufferWidth,
|
||||
gl.drawingBufferHeight,
|
||||
);
|
||||
|
||||
{
|
||||
const offset = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue