From 92c216910feed9721df19a43f8987df1cb75cd5f Mon Sep 17 00:00:00 2001 From: "Sean S. LeBlanc" Date: Wed, 29 Apr 2020 00:49:11 -0400 Subject: [PATCH] make pixelated css optional --- WebGLTemplates/BetterMinimal/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/WebGLTemplates/BetterMinimal/index.html b/WebGLTemplates/BetterMinimal/index.html index 9d3745b..65b73bc 100644 --- a/WebGLTemplates/BetterMinimal/index.html +++ b/WebGLTemplates/BetterMinimal/index.html @@ -62,6 +62,9 @@ div#gameContainer canvas { position: absolute; + } + + div#gameContainer[data-pixelated='true'] canvas { image-rendering: optimizeSpeed; image-rendering: -webkit-crisp-edges; image-rendering: -moz-crisp-edges; @@ -76,7 +79,7 @@ -
+