Skip to content

A code generator for efficient evaluation of spherical harmonics and their derivatives in various languages.

License

Notifications You must be signed in to change notification settings

MomentsInGraphics/sh_derivatives

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is supplemental code for the poster "Derivatives of Spherical Harmonics" presented at High-Performance Graphics 2025:

https://momentsingraphics.de/HPGPoster2025.html

The class SHCodeGeneration in sh_code_generation.py can generate well-optimized code in various languages that evaluates the spherical harmonics basis and its derivatives of any order. Here is an example of its use:

from sh_code_generation import SHCodeGeneration
print(SHCodeGeneration("eval_sh_0_2", 2, 1, False, False, False, "sloan", "glsl").generate())

About

A code generator for efficient evaluation of spherical harmonics and their derivatives in various languages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages