1
0

add atmosphere

This commit is contained in:
2025-11-20 19:39:03 +09:00
parent 8dddebec16
commit bc8ece5c63
78 changed files with 6306 additions and 410 deletions

View File

@@ -5,6 +5,7 @@ html {
body {
background-color: #fff;
background-color: #000;
background-color: #313131;
margin: 0;
height: 100%;
}

View File

@@ -88,6 +88,8 @@ export function Galaxy(props: JSX.IntrinsicElements['group']) {
const galaxyCenterLightRef = useRef<THREE.PointLight>(null!)
const searchParams = new URLSearchParams(window.location.search);
var g = searchParams.get('g') ?? 'galaxy';
const ms = searchParams.get('ms');
const vrm_scale = ms ? parseInt(ms, 10) : 1;
var model_galaxy = "./models/galaxy.glb"
var model_custom = "./models/ai.vrm"
var model_scale = 0.01;
@@ -158,7 +160,7 @@ export function Galaxy(props: JSX.IntrinsicElements['group']) {
return (
<group {...props} dispose={null} ref={ref}>
<VRMModel url={model_custom} url_anim={anim_custom} position={position_custom} scale={1} rotation={rotation_custom} />
<VRMModel url={model_custom} url_anim={anim_custom} position={position_custom} scale={vrm_scale} rotation={rotation_custom} />
{g === 'sun' && <GlbModel url="./models/solar-system.glb" scale={10} />}
{g === 'galaxy' && <GlbModel url="./models/solar-system.glb" scale={0.5} position={[0,0.5,2]}/>}