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; var world;
window.onload = function () { window.onload = function () {
console.log("is Retina supported: " + isRetinaSupported()); console.log("is Retina supported: " + isRetinaSupported());
disableRetinaSupport(); // disableRetinaSupport();
world = new WorldMorph(document.getElementById('world')); world = new WorldMorph(document.getElementById('world'));
world.worldCanvas.focus(); world.worldCanvas.focus();
new IDE_Morph().openIn(world); new IDE_Morph().openIn(world);

Wyświetl plik

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