-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Area lights refactored to use light source shape property (#2)
1) Light type replaced with light source shape property. 2) Disk and Sphere light source shapes added.** 3) Light source shapes made to work with existing punctual light types and features i.e shadows, culling, cookies, falloff range etc.*** 4) All light source shapes made to work with all light types.**** 5) "point" light renamed to "omni" light, and "point" aliased to "omni" on light creation for backwards compatibility. ** Sphere light source shape diffuse lighting can be further improved - probably relatively cheaply with wrap lighting. *** Punctual dynamic shadows are only an approximation - area light shadows should be implemented for higher quality. **** Directional area light specular can be further improved - currently approximated with a shape on the far clip plane.
- Loading branch information
Showing
15 changed files
with
720 additions
and
232 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.