Commit Graph

12 Commits

Author SHA1 Message Date
Matthew Gordon 953a152c97 Log backend and device (GPU model) when initializing 2025-05-30 16:57:27 -03:00
Matthew Gordon 1b3e475318 Raise WGPU requested limits 2025-05-30 16:56:43 -03:00
Matthew Gordon c5930e55f9 Web version now has feature parity with native 2025-05-24 18:46:51 -03:00
Matthew Gordon a15eedcd1b Progress towards getting web version working 2025-05-19 13:40:36 -03:00
Matthew Gordon 5d7159c490 Upgrade wgpu from version 23 to 25 2025-05-10 09:57:23 -03:00
Matthew Gordon c822264329 Raycasting works! 2025-01-03 15:46:37 -04:00
Matthew Gordon e7180e57bf Fix issues found by `cargo clippy`, including bugs 2024-11-22 20:32:15 -04:00
Matthew Gordon a4503c3dbf Load DEM texture 2024-11-22 20:20:06 -04:00
Matthew Gordon 35785dbf01 Redraw continuously instead of busy-waiting at 100% CPU
Previously, Pteropus would only redraw when the window was resized, but
it would continuously poll for events, keeping a CPU core at 100% even
when not doing anything.

It now automatically queues a new RedrawRequested event after each draw
finishes. The view() call will also limit the frame rate to the video
refresh rate and block when there are more than three frames queued up,
so we're not busywaiting any more.
2024-11-14 20:51:23 -04:00
Matthew Gordon b870e03812 Draw unlit cube when DEM is loaded
Reconfigure the pipeline to draw an unlit (solid colour silhouette) cube
when a DEM is loaded. The fragment shader of this cube will be what
raytraces the DEM.
2024-11-14 12:51:24 -04:00
Matthew Gordon 71b05c31a2 Load f32 tiff into DEM, started BVH, other changes 2024-11-13 17:14:44 -04:00
Matthew Gordon 5dfdd3e927 Stub in basic wgpu framework; just draw triangle right now
Start again using WGPU with both native and WebAssembly. Just draws a
triangle right now.
2024-07-12 17:27:27 -03:00