Compare commits

7 Commits
r119 ... master

4 changed files with 54662 additions and 1077 deletions

2
0000
View File

@@ -2,6 +2,6 @@ three.js
r119 r119
https://git.opengamestudio.org/mahjong/threejs https://git.opengamestudio.org/mahjong/threejs
/three.min.js /three.js
x /пуск|run.js x /пуск|run.js
/пуск|run.череда /пуск|run.череда

54656
three.js Normal file

File diff suppressed because one or more lines are too long

1070
three.min.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,4 +1,3 @@
const ИМЯ = "three.js";
// // // // // // // //
@@ -27,8 +26,6 @@ html, body {
var вид = document.createElement("style"); var вид = document.createElement("style");
вид.innerHTML = css; вид.innerHTML = css;
document.head.appendChild(вид); document.head.appendChild(вид);
document.body.innerHTML = "";
document.body.appendChild(мир.отрисовщик.domElement); document.body.appendChild(мир.отрисовщик.domElement);
}; };
@@ -82,7 +79,8 @@ html, body {
мир.сцена = new THREE.Scene(); мир.сцена = new THREE.Scene();
мир.сцена.background = new THREE.Color(0x333366); мир.сцена.background = new THREE.Color(0x333366);
мир.камера = new THREE.PerspectiveCamera(45, 1, 0.1, 1000); мир.камера = new THREE.PerspectiveCamera(45, 1, 0.1, 1000);
мир.отрисовщик = new THREE.WebGLRenderer(); мир.отрисовщик = new THREE.WebGLRenderer({antialias: true});
мир.ловецНажатий = new THREE.Raycaster();
}; };
@@ -91,8 +89,9 @@ html, body {
УстановитьThreeJS = мир => УстановитьThreeJS = мир =>
{ {
var модуль = мир.модули.модульПоИмени(ИМЯ); var модуль = мир.модули.модульПоУказателю(УКАЗАТЕЛЬТОГО_МОДУЛЯ);
var код = модуль.содержимое["/three.min.js"]; var код = модуль.содержимое["/three.js"];
console.debug("УстановитьThreeJS");
// Загрузить скрипт. // Загрузить скрипт.
var скрипт = document.createElement("script"); var скрипт = document.createElement("script");