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 66ebb9f commit 92c2169
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion WebGLTemplates/BetterMinimal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -76,7 +79,7 @@
</head>

<body onload="onResize();">
<div id="gameContainer"></div>
<div id="gameContainer" data-pixelated="%UNITY_CUSTOM_OPTIMIZE_FOR_PIXEL_ART%"></div>
</body>

</html>

0 comments on commit 92c2169

Please sign in to comment.