Scaffold Electron+React+TS app and render avatar VRM with animations

Sets up a transparent, always-on-top, frameless Electron window hosting
a Three.js scene that loads assets/avatar.vrm via @pixiv/three-vrm and
plays the bundled .vrma clips through @pixiv/three-vrm-animation. Fixes
the default CSP (which blocked texture-loading blob: fetches) and
frames the camera on the model automatically.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
william
2026-10-18 11:38:44 +02:00
co-authored by Claude Sonnet 5
commit 1959ddb41a
41 changed files with 9318 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { resolve } from 'path'
import { defineConfig } from 'electron-vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
main: {},
preload: {},
renderer: {
publicDir: resolve('assets'),
resolve: {
alias: {
'@renderer': resolve('src/renderer/src')
}
},
plugins: [react()]
}
})