Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor|Shadow Bias: Moved bias source affection updates out of Bias…
…Surface Affection is the contribution of light from source to "surface" in the same map. To determine affection demands knowledge of the origin of the both source and surface. BiasSurface lacks map surface origin knowledge therefore it cannot perform affection determination itself unaided. Source affection is now performed using the half-edge geometry and by the map surface which owns the BiasSource. Also, bias sources are now correctly occluded when in the void and no longer result in severe performance degredation (caused by performing unnecessary lighting calculations vs every map surface in range). A few bugs were fixed and the implementation cleaned of all residual aftermath from previous development/refactoring efforts. Note that the present mechanisms for storing light contributions and affections have been replaced with the simplest mechanism that works for the sake of clarity. A future implementation of the bias lighting model will most probably need to replace these in any case.
- Loading branch information
1 parent
58c1f37
commit 47c0930
Showing
9 changed files
with
375 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.