demos_wsg

Rust demos built on wsg-lib. One demo = one directory = one workspace member crate.

  • Bouncing balls on a textured disc: glossy colored ones, one mirror ball and one glass ball, under a skybox

    balls

    Bouncing balls with shadows, a mirror ball (reflection probe) and a glass ball (screen-space refraction).

    cargo run -p balls

  • A school of instanced fish swimming inside a transparent glass box

    flocking

    2 500 flocking fish drawn in instanced batches — one material per color.

    cargo run -p flocking --release

  • 100 000 animated instanced boxes filling the view, drawn in one draw call

    instances_1

    100 000 instanced boxes, one draw call — the engine's hard instance ceiling.

    cargo run -p instances_1 --release

  • A wireframe roller coaster track winding through a park, filmed by a camera following the wagon

    rollercoaster

    A wagon sliding along a closed 1.2 km track, filmed by a FollowCamera port.

    cargo run -p rollercoaster

  • A morphing glass harmonic at the centre of a night-blue star field, warm god rays fanning out from it

    spherical_harmonics

    A deformable parametric surface rebuilt every frame, as glass over its own background.

    cargo run -p spherical_harmonics

  • The glTF BoomBox model with its BaseColor and Normal textures

    boombox

    A glTF model (.glb) with its embedded textures extracted once and for all.

    cargo run -p boombox

Images are the demos' banners, mirrored from assets/images/ by website/build.sh — run it after refreshing a screenshot.