1
0
This commit is contained in:
2025-11-20 19:50:48 +09:00
parent ad2f54d5e7
commit 6476fd8084
2 changed files with 9 additions and 3 deletions

View File

@@ -13,9 +13,10 @@ import * as THREE from 'three';
import { AerialPerspective, Atmosphere } from '@takram/three-atmosphere/r3f';
import { Clouds, CloudLayer } from '@takram/three-clouds/r3f';
// --- Constants ---
const VRM_URL = '/ai.vrm';
const VRMA_URL = '/fly.vrma';
const BASE_URL = import.meta.env.BASE_URL;
const VRM_URL = `${BASE_URL}ai.vrm`;
const VRMA_URL = `${BASE_URL}fly.vrma`;
const EARTH_RADIUS = 6378137;
// 天気変更の間隔 (ms) - 5分

View File

@@ -1,6 +1,11 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
// ★ アプリケーションのベースパスを設定
// これにより、アセットは /pkg/atmosphere/ai.vrm のように参照されます
base: '/pkg/atmosphere/',
})