introduce prettierrc formatting
This commit is contained in:
@@ -6,7 +6,7 @@ export function setupCanvas(gl, canvas) {
|
||||
return {
|
||||
canvas,
|
||||
gl,
|
||||
aspectRatio: canvas.width / canvas.height
|
||||
aspectRatio: canvas.width / canvas.height,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -15,5 +15,9 @@ export function resizeCanvas(gl, canvas, program) {
|
||||
canvas.height = canvas.clientHeight * window.devicePixelRatio;
|
||||
gl.viewport(0, 0, canvas.width, canvas.height);
|
||||
gl.useProgram(program);
|
||||
gl.uniform2f(gl.getUniformLocation(program, "u_resolution"), canvas.width, canvas.height);
|
||||
gl.uniform2f(
|
||||
gl.getUniformLocation(program, 'u_resolution'),
|
||||
canvas.width,
|
||||
canvas.height
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user