add iss
This commit is contained in:
BIN
atmosphere/public/earth.glb
Normal file
BIN
atmosphere/public/earth.glb
Normal file
Binary file not shown.
BIN
atmosphere/public/iss.glb
Normal file
BIN
atmosphere/public/iss.glb
Normal file
Binary file not shown.
@@ -32,10 +32,9 @@ const EARTH_RADIUS = 6378137;
|
|||||||
|
|
||||||
const WEATHER_INTERVAL = 5 * 60 * 1000;
|
const WEATHER_INTERVAL = 5 * 60 * 1000;
|
||||||
|
|
||||||
const TIME_SCALE = 10;
|
const TIME_SCALE = 100;
|
||||||
|
|
||||||
// 初期時刻: 正午 (12:00)
|
const INITIAL_DATE = new Date('2024-06-21T12:00:00');
|
||||||
const INITIAL_DATE = new Date('2024-06-21T16:00:00');
|
|
||||||
|
|
||||||
// --- Weather Presets (天候設定) ---
|
// --- Weather Presets (天候設定) ---
|
||||||
const WEATHER_PRESETS = [
|
const WEATHER_PRESETS = [
|
||||||
@@ -73,7 +72,7 @@ const WEATHER_PRESETS = [
|
|||||||
const LOCATIONS = [
|
const LOCATIONS = [
|
||||||
{ name: 'Tokyo', longitude: 139.7671, latitude: 35.6812, heading: 180, pitch: -5, distance: 300 },
|
{ name: 'Tokyo', longitude: 139.7671, latitude: 35.6812, heading: 180, pitch: -5, distance: 300 },
|
||||||
{ name: 'Fuji', longitude: 138.7278, latitude: 35.3606, heading: 0, pitch: -10, distance: 4000 },
|
{ name: 'Fuji', longitude: 138.7278, latitude: 35.3606, heading: 0, pitch: -10, distance: 4000 },
|
||||||
{ name: 'Space', longitude: 139.7671, latitude: 35.6812, heading: 0, pitch: -90, distance: 10000000 },
|
{ name: 'Space', longitude: 139.7671, latitude: 35.6812, heading: 0, pitch: -90, distance: 100000 },
|
||||||
];
|
];
|
||||||
|
|
||||||
// --- Shared State for Synchronization ---
|
// --- Shared State for Synchronization ---
|
||||||
@@ -290,7 +289,7 @@ function AtmosphereScene() {
|
|||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</Clouds>
|
</Clouds>
|
||||||
<AerialPerspective sky sunLight skyLight />
|
<AerialPerspective sky />
|
||||||
<ToneMapping mode={ToneMappingMode.AGX} />
|
<ToneMapping mode={ToneMappingMode.AGX} />
|
||||||
</EffectComposer>
|
</EffectComposer>
|
||||||
</Atmosphere>
|
</Atmosphere>
|
||||||
@@ -551,8 +550,8 @@ function CameraSync() {
|
|||||||
|
|
||||||
function AvatarLayer() {
|
function AvatarLayer() {
|
||||||
return (
|
return (
|
||||||
<Canvas gl={{ alpha: true, antialias: true }}>
|
<Canvas gl={{ alpha: true, antialias: true, logarithmicDepthBuffer: true }}>
|
||||||
<PerspectiveCamera makeDefault position={[0, 1.5, 3]} fov={30} />
|
<PerspectiveCamera makeDefault position={[0, 1.5, 3]} fov={40} />
|
||||||
<CameraSync />
|
<CameraSync />
|
||||||
|
|
||||||
<directionalLight position={[-1, 1, 1]} intensity={1.5} />
|
<directionalLight position={[-1, 1, 1]} intensity={1.5} />
|
||||||
|
|||||||
Reference in New Issue
Block a user