kopia lustrzana https://github.com/backface/turtlestitch
enable retina and normalize renderer canvas
rodzic
3de113ade6
commit
9712d1e905
|
@ -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);
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Ładowanie…
Reference in New Issue