Skip to content

27 shadow system tests added for graphics/shadows#481

Open
MichaelFisher1997 wants to merge 1 commit intodevfrom
opencode/schedule-ec7df7-20260413205257
Open

27 shadow system tests added for graphics/shadows#481
MichaelFisher1997 wants to merge 1 commit intodevfrom
opencode/schedule-ec7df7-20260413205257

Conversation

@MichaelFisher1997
Copy link
Copy Markdown
Collaborator

Tests committed successfully. Summary of tests added:

src/engine/graphics/shadow_tests.zig - 27 tests covering:

  • ShadowSystem init/deinit: rejects zero resolution, accepts valid resolutions, initializes state correctly
  • ShadowCascades: initZero() defaults, isValid() edge cases (non-finite splits, zero texel size, non-increasing splits, non-finite matrices, zero split)
  • computeCascades: invalid input handling (zero resolution, far==near, near<=0), split ordering, positive texel sizes, fixed vs logarithmic split selection based on shadow distance, reverse-Z vs standard-Z, extreme sun directions
  • ShadowUniforms: struct size and field offset layout
  • IShadowContext: getShadowMapHandle bounds checking (returns 0 for out-of-bounds cascade)
  • ShadowConfig/ShadowParams: default values and struct layout

Triggered by scheduled workflow

New%20session%20-%202026-04-13T20%3A52%3A56.759Z
opencode session  |  github run

@github-actions github-actions bot added documentation Improvements or additions to documentation engine labels Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant