Skip to content

feat(light): DDA voxel shadow occlusion for point and area lights #108

Merged
Ocelot5836 merged 17 commits intoFoundryMC:next/1.21from
Meekiavelique:1.21
Mar 1, 2026
Merged

feat(light): DDA voxel shadow occlusion for point and area lights #108
Ocelot5836 merged 17 commits intoFoundryMC:next/1.21from
Meekiavelique:1.21

Conversation

@Meekiavelique
Copy link
Contributor

Added a camera-centered voxel shadow grid that point and area lights can use for cheap occlusion testing via a DDA ray march*

The occlusion per-light is toggelable and the grid is only built and bound when at least one light has occlusion enabled
And some changes to the Multibind cache so it avoid repeated target lookups on every bind call

@Ocelot5836 Ocelot5836 changed the base branch from 1.21 to next/1.21 March 1, 2026 20:36
@Ocelot5836 Ocelot5836 self-assigned this Mar 1, 2026
@Ocelot5836 Ocelot5836 added enhancement New feature or request 1.21 labels Mar 1, 2026
Copy link
Collaborator

@Ocelot5836 Ocelot5836 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pr looks good! Once you make those changes I'll go ahead and merge

@Ocelot5836
Copy link
Collaborator

If you remove the changes to ‎common/src/main/java/foundry/veil/api/client/render/ext/VeilMultiBind.java‎ I'll be able to rebase and merge

@Meekiavelique
Copy link
Contributor Author

Oops, i don't know what i've done but i just removed the changes

@Meekiavelique
Copy link
Contributor Author

Oops, i don't know what i've done but i just removed the changes

In the fixing conflict commit

Copy link
Collaborator

@Ocelot5836 Ocelot5836 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Meekiavelique
Copy link
Contributor Author

Huh

@Ocelot5836
Copy link
Collaborator

Oh, remove the second copy of this

@Meekiavelique
Copy link
Contributor Author

image What???

@Meekiavelique
Copy link
Contributor Author

Perfect

@Ocelot5836 Ocelot5836 merged commit 4062ab0 into FoundryMC:next/1.21 Mar 1, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.21 enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants