Rust voxel sandbox (wgpu + wasm + axum multiplayer)
Find a file
Maximus Gorog 0dca49f475 Round C: typed camera accessors, post-pass helper, leaf translucency (#20, #23, #25)
shader.wgsl:
  - Camera.frame layout now documented slot-by-slot in the struct
    comment; named accessors scene_time() / exposure_bias() / eye_world()
    so call sites read as intent. exposure_bias plumbed (default 1.0)
    as the foundation for a future Settings.exposure slider. [#20]
  - Leaves now get sun-aware backlit translucency: leaf_translucency()
    peaks when the sun rakes across the leaf plane AND comes from
    behind the surface. Cheap stand-in for subsurface scattering —
    reads as "dappled sun through canopy" without per-pixel ray
    sampling. [#25]

render/mod.rs:
  - run_fullscreen_pass(encoder, label, target, pipeline, bgs, clear)
    helper. The three post-chain steps (mask → shafts → composite)
    are now three sequential calls instead of three copies of the
    same begin_render_pass boilerplate. Adding a new effect (bloom,
    motion blur, vignette) is one extra row. [#23]
  - upload_camera fills frame[1] = 1.0 (exposure_bias default).

render/uniform.rs:
  - CameraUniform.frame doc updated to enumerate each slot.

Tests: 63 passing. Native + wasm release clean.
2026-05-24 10:16:05 -06:00
server pre-alpha 0.0.1 — initial multiplayer voxel sandbox 2026-05-22 23:33:47 -06:00
src Round C: typed camera accessors, post-pass helper, leaf translucency (#20, #23, #25) 2026-05-24 10:16:05 -06:00
web Render + UI polish since pre-alpha-0.0.1 2026-05-23 18:44:56 -06:00
.dockerignore Add Docker + Caddy deploy for voxel.mxvs.art 2026-05-23 18:45:05 -06:00
.gitignore pre-alpha 0.0.1 — initial multiplayer voxel sandbox 2026-05-22 23:33:47 -06:00
ARCHITECTURE.md Add ARCHITECTURE.md mapping the functional-core/imperative-shell split 2026-05-23 23:33:02 -06:00
build-web.sh pre-alpha 0.0.1 — initial multiplayer voxel sandbox 2026-05-22 23:33:47 -06:00
Caddyfile Add Docker + Caddy deploy for voxel.mxvs.art 2026-05-23 18:45:05 -06:00
Cargo.lock pre-alpha 0.0.1 — initial multiplayer voxel sandbox 2026-05-22 23:33:47 -06:00
Cargo.toml pre-alpha 0.0.1 — initial multiplayer voxel sandbox 2026-05-22 23:33:47 -06:00
DEPLOY.md DEPLOY.md: add active-deployment runbook for voxel.mxvs.art 2026-05-23 22:52:43 -06:00
docker-compose.prod.yml Add Docker + Caddy deploy for voxel.mxvs.art 2026-05-23 18:45:05 -06:00
docker-compose.yml Add Docker + Caddy deploy for voxel.mxvs.art 2026-05-23 18:45:05 -06:00
Dockerfile Add Docker + Caddy deploy for voxel.mxvs.art 2026-05-23 18:45:05 -06:00
run.sh pre-alpha 0.0.1 — initial multiplayer voxel sandbox 2026-05-22 23:33:47 -06:00