10 Commits

Author SHA1 Message Date
xfy
00aa27175e fix(web): silence spurious console errors (meta + AudioContext)
Two independent sources of noise in the web console, both from the
default plugin set:

1. 'Failed to deserialize meta for asset shaders/*.wgsl'
   DefaultPlugins adds AssetPlugin with meta_check = Always, so bevy
   fetches <path>.meta for every shader. The shaders ship raw (no .meta
   files); on the trunk dev server those requests don't return a clean
   404 that bevy maps to NotFound, so bevy receives bytes and tries to
   RON-deserialize them as AssetMetaMinimal, logging a SpannedError per
   shader. Set meta_check = Never: it skips the meta lookup and uses the
   loader's default meta — correct for processor-free raw assets.

2. 'AudioContext was not allowed to start'
   The default AudioPlugin opens a WebAudio sink at startup; browsers
   block that until a user gesture and log it as a JS error. This app
   has no audio, so disable AudioPlugin entirely — removes the noise and
   shrinks the wasm binary.
2026-07-16 10:07:19 +08:00
xfy
7d4a53358f feat: derive disk_inner from Kerr ISCO 2026-07-14 14:18:36 +08:00
xfy
8931904495 feat: lensed planet ray-sphere intersection in geodesic tracer
Add planets as ray-traced spheres inside the RK4 geodesic loop. A new
planets.wgsl shader tests each integrator segment against a storage
buffer of SphereData (center/radius/color/emissive) and composites hits
front-to-back alongside the accretion disk. Lambert shading with a fixed
light direction; emissive flag bypasses shading.

- assets/shaders/planets.wgsl: segment-sphere intersection + shading
- src/scene/: Planet component, upload_planets system, default planet
- black_hole.wgsl: wire planet_hit into the compositing loop
- geodesic_schwarzschild.wgsl: replace tuple return with Deriv struct
2026-07-10 17:06:19 +08:00
xfy
983413e9af feat: egui UI wired with live disk brightness + steps 2026-07-10 10:54:22 +08:00
xfy
1a2b157ef3 feat: BlackHoleParams tunable resource 2026-07-10 10:27:10 +08:00
xfy
d039064efa feat: orbit camera controller (yaw/pitch/zoom) 2026-07-10 10:25:16 +08:00
xfy
a45d42c07a feat: full-screen quad + BlackHoleMaterial pipeline 2026-07-10 10:20:38 +08:00
xfy
9c8f384d0e feat: web build via trunk with WebGPU detection + fallback 2026-07-10 10:12:57 +08:00
xfy
25e2207e0d feat: minimal bevy window opens 2026-07-10 09:48:38 +08:00
xfy
3d34c0920d Initial commit: scaffold Rust project with Cargo 2026-07-09 17:55:14 +08:00