1
0

add vrm mode

This commit is contained in:
2026-03-07 14:35:30 +09:00
parent d1929396ba
commit f60961a963
6 changed files with 125 additions and 20 deletions

View File

@@ -5,12 +5,12 @@ import * as THREE from 'three';
const SPHERE_PRESETS = {
sun: {
layers: [
{ radius: 0.3, segments: 64, size: 0.015, opacity: 0.8 },
{ radius: 0.22, segments: 48, size: 0.02, opacity: 0.5 },
{ radius: 0.38, segments: 40, size: 0.008, opacity: 0.3 },
{ radius: 0.3, segments: 64, size: 0.015, opacity: 0.5 },
{ radius: 0.22, segments: 48, size: 0.02, opacity: 0.3 },
{ radius: 0.38, segments: 40, size: 0.008, opacity: 0.2 },
],
lightColor: '#ffaa22',
lightIntensity: 3,
lightIntensity: 1.5,
rotateSpeed: 1.5,
pulseSpeed: 2.0,
pulseRange: 0.25,
@@ -22,11 +22,11 @@ const SPHERE_PRESETS = {
},
moon: {
layers: [
{ radius: 0.2, segments: 48, size: 0.01, opacity: 0.6 },
{ radius: 0.26, segments: 32, size: 0.006, opacity: 0.25 },
{ radius: 0.2, segments: 48, size: 0.01, opacity: 0.4 },
{ radius: 0.26, segments: 32, size: 0.006, opacity: 0.15 },
],
lightColor: '#aaccff',
lightIntensity: 2,
lightIntensity: 1.0,
rotateSpeed: 0.8,
pulseSpeed: 1.0,
pulseRange: 0.12,
@@ -140,7 +140,7 @@ function EnergySphere({ type = 'sun', position = [0, 1.5, 0], scale = 1 }) {
/>
</group>
))}
<pointLight position={[0, 0, 0]} intensity={preset.lightIntensity} color={preset.lightColor} distance={5} />
<pointLight position={[0, 0, 0]} intensity={preset.lightIntensity} color={preset.lightColor} distance={3} />
</group>
);
}