1
0
This commit is contained in:
syui 2024-03-21 02:20:35 +09:00
parent 25b3bb2925
commit e2353dce75
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
3 changed files with 7 additions and 5 deletions

BIN
ai_normal.vrm Normal file

Binary file not shown.

2
dist/vrma vendored

@ -1 +1 @@
Subproject commit b423bcb79dc14a098a9fed8f3cf4026353545e78
Subproject commit 9cbfaefed6d33f8fd59471faec0470f1656b571c

View File

@ -242,7 +242,7 @@ window.addEventListener("DOMContentLoaded", () => {
}
let user_enable = 0;
let user_max = 2;
let user_max = 3;
let anime_id;
function user_s(){
if (user_enable >= user_max) {
@ -251,8 +251,6 @@ window.addEventListener("DOMContentLoaded", () => {
console.log(user_enable);
switch (user_enable) {
case 0:
load("/vrma/ai_eya.vrm");
scene.remove(currentVrm.scene);
light.intensity = -0.8;
renderer.setClearColor(0x000000);
scene.remove(grid);
@ -266,7 +264,7 @@ window.addEventListener("DOMContentLoaded", () => {
case 1:
cancelAnimationFrame(anime_id);
scene.add(grid);
load("/vrma/ai.vrm");
load("/vrma/ai_normal.vrm");
scene.remove(currentVrm.scene);
renderer.toneMapping = THREE.NeutralToneMapping;
light.intensity = 1;
@ -274,6 +272,10 @@ window.addEventListener("DOMContentLoaded", () => {
renderer.setClearColor(0xffffff);
scene.fog = new Fog(0xffffff, 3, 20);
break;
case 2:
load("/vrma/ai.vrm");
scene.remove(currentVrm.scene);
break;
}
user_enable++;