Commit Graph
6 Commits
Author SHA1 Message Date
Matthias Schlich cd054e828d Lens Flare: skip rays that miss the tile; test the brightness blend
Rays whose segment misses the output tile are no longer walked for every tile.
The bracket test now checks the upper level at an exact brightness, and a new
pixel test checks that a brightness between two measured levels gets the
weighted mean of their light (where neither is clipped).
2026-11-03 15:57:26 +01:00
Matthias Schlich fd4a0b78a4 Lens Flare: an overflowing centre lights nothing instead of writing NaN
A centre of 1e300 from a command becomes infinite in f32, and the streaks then
wrote NaN into every pixel (clamp keeps NaN). Skip the flare when the geometry
is not finite, skip NaN in the streak test and treat a non-finite amount as no
light. Tests cover all four lenses, in algo and through the command.
2026-11-03 14:22:21 +01:00
Matthias Schlich 3577eeb914 Merge origin/main into feat/lens-flare-look 2026-10-27 21:59:26 +01:00
aiongg 2be8a2e5a8 refactor(algo): move tests_selection_mix.rs to tests/selection_mix.rs 2026-10-26 22:30:15 +00:00
aiongg dd784da5cc refactor(algo): move tests_mosaic.rs to tests/mosaic.rs 2026-10-26 22:30:15 +00:00
aiongg 1559d287d6 refactor(algo): move tests_ext.rs to tests/ext.rs 2026-10-26 22:30:15 +00:00