feat(examples): verify perspective/orthographic switching #953

Merged
SakulFlee merged 2 commits from feat/renderer-camera-toggle into main 2026-10-27 18:14:52 +00:00
Owner

Summary

Example coverage for the merged orthographic camera work.

  • Examples/all-in-one
    • Press O to switch the active camera between perspective and orthographic.
    • HUD shows the active projection.
    • Keeps the existing perspective controller; the dedicated orthographic example is the place for orthographic pan/zoom.
  • Examples/orthographic
    • Three equal cubes at different depths plus a directional fill light.
    • Orthographic scale is immediately visible: the cubes do not shrink with distance.
    • Uses the orthographic pan/zoom controller pair from #948.

Verification

Merged main was verified locally after rebuilding the pinned Rust toolchain.

  • cargo fmt --all --check
  • cargo check --workspace with clippy-driver and -D warnings
  • cargo test --workspace --no-fail-fast (exit status 0)
  • cargo test -p orbital_resources --test wgsl_shaders (24/24)
  • cargo check -p template_all_in_one -p template_orthographic

GUI execution is still unavailable here (no display/GPU), so the O toggle and cube-scale check are compile-verified only.

Refs #583, #781.

## Summary Example coverage for the merged orthographic camera work. - `Examples/all-in-one` - Press **O** to switch the active camera between perspective and orthographic. - HUD shows the active projection. - Keeps the existing perspective controller; the dedicated orthographic example is the place for orthographic pan/zoom. - `Examples/orthographic` - Three equal cubes at different depths plus a directional fill light. - Orthographic scale is immediately visible: the cubes do not shrink with distance. - Uses the orthographic pan/zoom controller pair from #948. ## Verification Merged `main` was verified locally after rebuilding the pinned Rust toolchain. - `cargo fmt --all --check` - `cargo check --workspace` with clippy-driver and `-D warnings` - `cargo test --workspace --no-fail-fast` (exit status 0) - `cargo test -p orbital_resources --test wgsl_shaders` (24/24) - `cargo check -p template_all_in_one -p template_orthographic` GUI execution is still unavailable here (no display/GPU), so the O toggle and cube-scale check are compile-verified only. Refs #583, #781.
SakulFlee force-pushed feat/renderer-camera-toggle from a9d0704a83
All checks were successful
PR / test (pull_request) Successful in 53s
Lint / lint (pull_request) Successful in 1m1s
Templates / templates (pull_request) Successful in 1m44s
to 46224660eb
All checks were successful
PR / test (pull_request) Successful in 30s
Lint / lint (pull_request) Successful in 51s
Templates / templates (pull_request) Successful in 55s
2026-10-27 17:59:01 +00:00
Compare
SakulFlee deleted branch feat/renderer-camera-toggle 2026-10-27 18:14:53 +00:00
Sign in to join this conversation.
No description provided.