Skip to content

fix: restore shader filename to match Rust loader - #42

Closed
dynnamitt wants to merge 1 commit into
mainfrom
fix-shader-path
Closed

fix: restore shader filename to match Rust loader#42
dynnamitt wants to merge 1 commit into
mainfrom
fix-shader-path

Conversation

@dynnamitt

Copy link
Copy Markdown
Owner

Summary

Commit c98651e ("screenShot!") accidentally renamed assets/shaders/fov_overlay.wgsl to aiming_overlay.wgsl without updating src/h_terrain/fov_overlay.rs:42,46, which still loads "shaders/fov_overlay.wgsl" via FovOverlay::fragment_shader and deferred_fragment_shader.

Effect: missing-asset error at runtime on every cargo run after c98651e. The deployed v0.0.7 build (tagged before the rename) still works because its bundle contains fov_overlay.wgsl.

This PR renames the asset back to keep the Rust struct/file/CLAUDE.md naming (FovOverlay / fov_overlay) consistent with the asset.

Test plan

  • cargo build succeeds
  • cargo run starts up and the FoV overlay renders (visual sanity check)

🤖 Generated with Claude Code

Commit c98651e ("screenShot!") accidentally renamed the shader
asset from fov_overlay.wgsl to aiming_overlay.wgsl without
updating src/h_terrain/fov_overlay.rs, which still loads
"shaders/fov_overlay.wgsl" via FovOverlay::fragment_shader and
deferred_fragment_shader. The result was a missing-asset error
at runtime on every cargo run after that commit.

Renaming the file back keeps the Rust struct/file/CLAUDE.md
naming (FovOverlay / fov_overlay) consistent with the asset.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@dynnamitt dynnamitt closed this Apr 27, 2026
@dynnamitt
dynnamitt deleted the fix-shader-path branch April 27, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant