enable retina and normalize renderer canvas

retina
Michael 2021-10-05 13:32:01 +02:00
rodzic 3de113ade6
commit 9712d1e905
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -52,7 +52,7 @@
var world;
window.onload = function () {
console.log("is Retina supported: " + isRetinaSupported());
disableRetinaSupport();
// disableRetinaSupport();
world = new WorldMorph(document.getElementById('world'));
world.worldCanvas.focus();
new IDE_Morph().openIn(world);

Wyświetl plik

@ -2548,7 +2548,7 @@ StageMorph.prototype.initRenderer = function () {
this.renderer = new THREE.WebGLRenderer({
antialias: true,
alpha: true,
canvas: this.penTrails()
canvas: normalizeCanvas(this.penTrails())
});
console.log("webgl enabled");
this.renderer_status_msg = "webgl enabled";