Skip to content

Commit

Permalink
update for 2020.2 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
seleb authored Jun 27, 2020
1 parent f85d339 commit 6ca8ebb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions WebGLTemplates/BetterMinimal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
</style>
</head>

<body>
<div id="gameContainer">
<canvas id="unity-canvas"></canvas>
<canvas id="unity-canvas" data-pixel-art="{{{ OPTIMIZE_FOR_PIXEL_ART }}}"></canvas>
<script src="Build/{{{ LOADER_FILENAME }}}"></script>
<script>
createUnityInstance(document.querySelector("#unity-canvas"), {
Expand Down

0 comments on commit 6ca8ebb

Please sign in to comment.