Browse Source

Изменения от Главреда ГитЖС | Changes of GitJS Glavred

master
Главред | Glavred 3 years ago
parent
commit
f77dedf28b
2 changed files with 11 additions and 4 deletions
  1. +1
    -1
      0000
  2. +10
    -3
      🎬.js

+ 1
- 1
0000 View File

@@ -1,5 +1,5 @@
Рисователь
0.7.0
0.7.1
https://git.opengamestudio.org/PuCOBATEJlb/PuCOBATEJlb

/base64js.min.js


+ 10
- 3
🎬.js View File

@@ -70,11 +70,15 @@
мир.камера.updateProjectionMatrix();
мир.рисователь.setSize(ширина, высота);
var размер = мир.масштаб * 100;
мир.канва.style = `
/*
position: absolute;
left: 0;
top: 0;
*/
var размер = мир.масштаб * 100;
мир.канва.style = `

max-width: ${размер}%;
max-height: ${размер}%;
width: ${размер}%;
@@ -109,7 +113,10 @@ height: ${размер}%;
мир.текстурщик = new THREE.TextureLoader();
мир.масштаб = 1;
мир.канва = document.createElement("canvas");
document.body.prepend(мир.канва);
var родитель = document.createElement("div");
родитель.appendChild(мир.канва);
родитель.style = "overflow: auto; width: 100%; height: 100%; max-width: 100%; max-height: 100%;";
document.body.prepend(родитель);
мир.рисователь = new THREE.WebGLRenderer({canvas: мир.канва, antialias: true});
};



Loading…
Cancel
Save