Prague Sky Model (2021) — Full-Spectral Dataset Sky

ClassPragueSkyModelLight
FamilyEnvironment shader (Sky + analytic shader)
Author(s)Wilkie, Vévoda, Bashford-Rogers, Hanika, Hachisuka, Křivánek
Year2021
ReferenceWilkie, A. et al. (2021). A fitted radiance and attenuation model for realistic atmospheres. ACM Trans. Graph. (SIGGRAPH 2021) 40(4), 135:1–135:14.

Introduction

The Prague Sky Model is a dataset-driven sky model covering the full solar spectrum (280–2480 nm) and a wide range of atmospheric conditions: visibility 20–131.8 km, observer altitude 0–15 km, solar elevation −4.2°–90°, and ground albedo 0–1. The dataset is distributed under the Apache 2.0 licence and must be downloaded separately. Phase 1 (current): if no dataset is loaded, the model falls back to Preetham radiance with a console warning.

Parameters

ParameterTypeRangeDescription
datasetPathStringfile pathPath to the SkyModelDataset.dat file.
solarElevationdouble−4.2 – 90 °Solar elevation angle above horizon.
azimuthdouble0 – 360 °Solar azimuth (0 = North, 90 = East).
visibilitydouble20 – 131.8 kmMeteorological optical range (aerosol load). <50 = hazy, >100 = very clear.
observerAltitudedouble0 – 15 kmAltitude of the observer above sea level.
groundAlbedodouble0 – 1Ground albedo (broadband).

Renderer compatibility

Twilight (Sunflow)✅ (Phase 1: Preetham fallback)
GPUFlux✅ (Phase 1: Preetham fallback)
OpenGL / Proteusbackground colour only

Dataset

The dataset file can be obtained from the Charles University Prague CG Group page. Set the path via the Parameters tab or in code: ((PragueSkyModelLight) sky.getShader()).setDatasetPath(path);