8 releases
0.2.2 | May 14, 2023 |
---|---|
0.2.1 | Jan 28, 2023 |
0.1.3 | Jul 24, 2021 |
0.1.2 | Dec 29, 2019 |
0.0.1 | Oct 22, 2019 |
#249 in Rendering
89 downloads per month
Used in 4 crates
(2 directly)
265KB
1K
SLoC
sphrs
sphrs is a general purpose spherical harmonics and (regular and irregular) solid harmonics library in Rust.
For details on how to use sphrs, please consult the documentation, either for the latest stable release, or for the current main branch.
Acknowledgements
This crate is heavily inspired by Google's spherical-harmonics library and follows the mathematics documented here.
References
- Robin Green, "Spherical Harmonic Lighting: The Gritty Details"
- Spherical harmonics (Wikipedia)
- Solid harmonics (Wikipedia)
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
License: MIT OR Apache-2.0