Skip to content

Commit 0e7b22b

Browse files
committed
Adjust hero component renderer size to account for header height
1 parent fb187da commit 0e7b22b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/hero/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void main() {
8989
const camera = new Camera(gl, { near: 0.1, far: 100 });
9090
camera.position.set(2.2, 2.2, 2.2);
9191
camera.lookAt(new Vec3(0, 0, 0));
92-
renderer.setSize(window.innerWidth, window.innerHeight);
92+
renderer.setSize(window.innerWidth, window.innerHeight - 264);
9393
const resize = () => {
9494
camera.perspective({ aspect: gl.canvas.width / gl.canvas.height });
9595
};

0 commit comments

Comments
 (0)