Expand description
Prakash — Optics and light simulation for AGNOS
Sanskrit: प्रकाश (prakash) — light, illumination, to make visible
Provides ray optics, wave optics, spectral math, lens geometry, physically-based rendering, and atmospheric optics. Built on hisab for math foundations.
§Modules
ray— Geometric optics: reflection, refraction, Snell’s law, Fresnel, dispersion, sequential/recursive ray tracing, ray fans, spot diagrams, OPDwave— Wave optics: interference, diffraction, polarization (Jones/Stokes/Mueller), coherence, Fabry-Pérot, anti-reflection coatings, 2D patterns, PSFspectral— Wavelength ↔ RGB, blackbody radiation, CIE 1931, SPD, illuminants, CRI, color temperaturelens— Lens/mirror geometry: thin/thick lens, aberrations (Seidel), MTF, DoF, Petzval, multi-element systems- [
pbr] — PBR shading: Cook-Torrance, GGX, sheen, clearcoat, SSS, iridescence, volumetric, importance sampling, environment maps - [
atmosphere] — Atmospheric optics: Rayleigh/Mie scattering, sky color, air mass, optical depth, sunset model error— Error types
§Wavelength parameter convention
_nmsuffix — wavelength in nanometers (spectral, CIE, visible-range functions)_msuffix — wavelength in meters (Planck, atmospheric scattering, coherence)_umsuffix — wavelength in micrometers (dispersion: Sellmeier, Cauchy)- unsuffixed — unit-agnostic; caller provides consistent units (wave optics, lens)
Within wave-optics functions, wavelength is always the first parameter, followed by geometry (aperture, slit width), then observation angle/position.
Re-exports§
pub use error::PrakashError;
Modules§
- error
- Error types for prakash.
- lens
- Lens and mirror geometry — focal length, magnification, thin lens equation, aberrations.
- ray
- Geometric (ray) optics — reflection, refraction, Snell’s law, Fresnel equations.
- spectral
- Spectral math — wavelength ↔ RGB, blackbody radiation, color temperature.
- wave
- Wave optics — interference, diffraction, polarization.