Skip to content

Commit

Permalink
make pixelated css optional
Browse files Browse the repository at this point in the history
  • Loading branch information
seleb committed Apr 29, 2020
1 parent 97e013e commit f85d339
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WebGLTemplates/BetterMinimal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}

div#gameContainer canvas {
position: absolute;
position: absolute;{{{ OPTIMIZE_FOR_PIXEL_ART && `
image-rendering: optimizeSpeed;
image-rendering: -webkit-crisp-edges;
image-rendering: -moz-crisp-edges;
Expand All @@ -31,7 +31,7 @@
image-rendering: -webkit-optimize-contrast;
image-rendering: optimize-contrast;
image-rendering: pixelated;
-ms-interpolation-mode: nearest-neighbor;
-ms-interpolation-mode: nearest-neighbor;` }}}
}
</style>
</head>
Expand Down

0 comments on commit f85d339

Please sign in to comment.