mirror of
https://github.com/osmarks/website
synced 2025-09-03 11:17:55 +00:00
scaling fix
This commit is contained in:
@@ -91,7 +91,7 @@ void main() {
|
||||
let size = 1000
|
||||
let canvas = document.querySelector("canvas")
|
||||
canvas.width = canvas.height = size
|
||||
canvas.style.width = canvas.style.height = "100%n"
|
||||
canvas.style.width = "100%"
|
||||
// the WebGL API is terrible and if I meet whoever designed it I will armbar them
|
||||
const gl = canvas.getContext("webgl")
|
||||
|
||||
|
Reference in New Issue
Block a user