We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d499bc8 commit 8e58343Copy full SHA for 8e58343
src/components/hero/index.tsx
@@ -113,7 +113,9 @@ void main() {
113
const updateSize = () => {
114
const height = isMobile() ? MOBILE_HEIGHT : DESKTOP_HEIGHT;
115
renderer.setSize(window.innerWidth - 32, window.innerHeight - height);
116
- camera.perspective({ aspect: gl.canvas.width / gl.canvas.height });
+ camera.perspective({
117
+ aspect: (gl.canvas.width + 32) / gl.canvas.height
118
+ });
119
};
120
121
window.addEventListener("resize", updateSize);
0 commit comments