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; }
- +