mrozycki/rustmas

Detect incorrectly detected lights using distance to neighbors in 3D

Closed this issue · 0 comments

If the distance from a light to its neighbors exceeds certain threshold (based on the average of all neighboring light distances), then we can assume it to be detected incorrectly. We can overshoot a bit how many lights will be discarded, since interpolation logic at a later stage of detection will be able to place them back into the tree.