From 6ca8ebb44cba98cdbebb9be6fabcc16a6600a538 Mon Sep 17 00:00:00 2001 From: Sean LeBlanc Date: Fri, 26 Jun 2020 22:39:58 -0700 Subject: [PATCH] update for 2020.2 (#2) --- WebGLTemplates/BetterMinimal/index.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/WebGLTemplates/BetterMinimal/index.html b/WebGLTemplates/BetterMinimal/index.html index 8c1cefa..7378708 100644 --- a/WebGLTemplates/BetterMinimal/index.html +++ b/WebGLTemplates/BetterMinimal/index.html @@ -22,7 +22,11 @@ } div#gameContainer canvas { - position: absolute;{{{ OPTIMIZE_FOR_PIXEL_ART && ` + position: absolute; + } + + div#gameContainer canvas[data-pixel-art="true"] { + position: absolute; image-rendering: optimizeSpeed; image-rendering: -webkit-crisp-edges; image-rendering: -moz-crisp-edges; @@ -31,14 +35,14 @@ image-rendering: -webkit-optimize-contrast; image-rendering: optimize-contrast; image-rendering: pixelated; - -ms-interpolation-mode: nearest-neighbor;` }}} + -ms-interpolation-mode: nearest-neighbor; }
- +