Projects
View on GitHub
sebh/HLSL-Spherical-Harmonics
About
A collection of HLSL functions one can include to use spherical harmonics in shaders. This repository can be simply be used as a submodule.
Design & MediaMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalHLSL-Spherical-Harmonics
Description
A collection of HLSL functions one can include to use spherical harmonics in shaders. This is practical when generating and consuming SH on the GPU.
Using Git, this repository can be integrated in your project as a submodule.
Files description:
- SphericalHarmonics.hlsl: the HLSL file containing all the SH functions.
- sh2.nb : A Mathematica notebook to verify and visualize SH functions correctness.
- sh2.pdf: A compiled pdf to simply read sh2.nb.
Examples
Precomputed occlusion as SH for cloud ambient lighting. Result as video and as images (1st image: directional occlusion as SH, 2nd image: final cloud render):
Future
- As of today, only 2nd order SH functions are provided. 3rd order SH could be added.
- Do not hesitate to send suggestions or improvements.
Explore related projects
Loading…