Skip to content

Fix shadow rendering in Compatibility#63

Open
Kaleb-Reid wants to merge 1 commit into
V-Sekai:vsk-override-projection-4.5from
Kaleb-Reid:fix-override-projection
Open

Fix shadow rendering in Compatibility#63
Kaleb-Reid wants to merge 1 commit into
V-Sekai:vsk-override-projection-4.5from
Kaleb-Reid:fix-override-projection

Conversation

@Kaleb-Reid
Copy link
Copy Markdown

I bisected broken directional shadows in the Compatibility renderer in my builds to the commit I cherry-picked from this branch. The shadows would simply not appear. render_data.cam_projection is set at three points in Compatibility, once for the main camera projection on line 2261, once for rendering particle heightfields on line 3682, and once for shadow passes on line 2151. I'm guessing for shadow / particle rendering we do not want to use the main camera projection.

This seemed to fix the shadows in the short time I tested it, not sure if this breaks anything else.

@fire
Copy link
Copy Markdown
Member

fire commented Nov 18, 2025

I think multiview is used in VR so this might break vr if we only use the first camera. Not sure.

@Kaleb-Reid
Copy link
Copy Markdown
Author

@fire I don't think that this should break VR unless it was already broken on this branch. I just moved where we override the projection matrix so that it doesn't affect shadows / particles.

@fire
Copy link
Copy Markdown
Member

fire commented Nov 18, 2025

I think there is a vulkan software development kit location change that breaks the build.

@fire
Copy link
Copy Markdown
Member

fire commented Dec 2, 2025

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.

2 participants