fix
This commit is contained in:
parent
25b3bb2925
commit
e2353dce75
BIN
ai_normal.vrm
Normal file
BIN
ai_normal.vrm
Normal file
Binary file not shown.
2
dist/vrma
vendored
2
dist/vrma
vendored
@ -1 +1 @@
|
|||||||
Subproject commit b423bcb79dc14a098a9fed8f3cf4026353545e78
|
Subproject commit 9cbfaefed6d33f8fd59471faec0470f1656b571c
|
10
src/index.ts
10
src/index.ts
@ -242,7 +242,7 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let user_enable = 0;
|
let user_enable = 0;
|
||||||
let user_max = 2;
|
let user_max = 3;
|
||||||
let anime_id;
|
let anime_id;
|
||||||
function user_s(){
|
function user_s(){
|
||||||
if (user_enable >= user_max) {
|
if (user_enable >= user_max) {
|
||||||
@ -251,8 +251,6 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||||||
console.log(user_enable);
|
console.log(user_enable);
|
||||||
switch (user_enable) {
|
switch (user_enable) {
|
||||||
case 0:
|
case 0:
|
||||||
load("/vrma/ai_eya.vrm");
|
|
||||||
scene.remove(currentVrm.scene);
|
|
||||||
light.intensity = -0.8;
|
light.intensity = -0.8;
|
||||||
renderer.setClearColor(0x000000);
|
renderer.setClearColor(0x000000);
|
||||||
scene.remove(grid);
|
scene.remove(grid);
|
||||||
@ -266,7 +264,7 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||||||
case 1:
|
case 1:
|
||||||
cancelAnimationFrame(anime_id);
|
cancelAnimationFrame(anime_id);
|
||||||
scene.add(grid);
|
scene.add(grid);
|
||||||
load("/vrma/ai.vrm");
|
load("/vrma/ai_normal.vrm");
|
||||||
scene.remove(currentVrm.scene);
|
scene.remove(currentVrm.scene);
|
||||||
renderer.toneMapping = THREE.NeutralToneMapping;
|
renderer.toneMapping = THREE.NeutralToneMapping;
|
||||||
light.intensity = 1;
|
light.intensity = 1;
|
||||||
@ -274,6 +272,10 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||||||
renderer.setClearColor(0xffffff);
|
renderer.setClearColor(0xffffff);
|
||||||
scene.fog = new Fog(0xffffff, 3, 20);
|
scene.fog = new Fog(0xffffff, 3, 20);
|
||||||
break;
|
break;
|
||||||
|
case 2:
|
||||||
|
load("/vrma/ai.vrm");
|
||||||
|
scene.remove(currentVrm.scene);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
user_enable++;
|
user_enable++;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user