Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 819 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 819 Bytes

Black Hole Ray Marching

This app uses ray marching, some maths from here and here and the Runge-Kutta method to simulate light rays around a black hole.

I started this app using the the Learn Wgpu tutorial. The user can control the camera and some settings.

Bloom using a Kawase dual filter is also implemented.

Using rust and WGPU (wgpu-rs), and wgsl shaders. Supports WASM.

Use cargo run to start.

Black hole

Controls

  • WASD, F and Space to move.
  • Q and E to change speed.
  • Press number keys and arrows to change shader uniforms.
  • Hold F and the number keys to change maximum framerate.

Other

Uses some maths from: