correct bilinear interpolation for ambient occlusion #29

Closed
rdh wants to merge 1 commits from rdh/celeritas:stonecutter into stonecutter
pull from: rdh/celeritas:stonecutter
Collaborator

applies the non-linear correction coefficient to the mostly-correct AO value the gpu's fixed function triangle interpolator already outputs, at the cost of 4 more bytes per vertex in every vertex format, and possibly a slower fragment shader (benchmarks pending)

This still has some Fake Line™s caused by discontinuities in the derivative of the AO value on the corner-to-edge quad boundary, that's something for future work since I haven't been able to produce a good enough smoothing implementation in the past 12 ish hours of work

applies the non-linear correction coefficient to the mostly-correct AO value the gpu's fixed function triangle interpolator already outputs, at the cost of 4 more bytes per vertex in every vertex format, and possibly a slower fragment shader (benchmarks pending) This still has some Fake Line™s caused by discontinuities in the derivative of the AO value on the corner-to-edge quad boundary, that's something for future work since I haven't been able to produce a good enough smoothing implementation in the past 12 ish hours of work
rdh added 1 commit 2026-07-29 23:54:23 -04:00
Owner

Merged manually with a few cleanups

Merged manually with a few cleanups
embeddedt closed this pull request 2026-08-09 14:07:38 -04:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: embeddedt/celeritas#29