X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Feffects%2Fsky.h;h=cb8403e77709ff0eb8ab81e9f306c3a4fa422e2b;hb=5ced451549e2238bb1195d03419437a395b9afec;hp=0152729a0ec8cf8dbb5ba88c5fc529ad5fd895c2;hpb=083a8227715fa32c841fc2b8126e4ab8d2840ba0;p=libs%2Fgl.git diff --git a/source/effects/sky.h b/source/effects/sky.h index 0152729a..cb8403e7 100644 --- a/source/effects/sky.h +++ b/source/effects/sky.h @@ -13,9 +13,14 @@ class Mesh; class Program; /** -Renders a procedurally generated sky at the background. Based on the paper -"A Scalable and Production Ready Sky and Atmosphere Rendering Technique" by -Sébastien Hillaire (https://sebh.github.io/publications/egsr2020.pdf). +Renders a procedurally generated sky at the background. + +In addition to the background, the transmittance of the sun light is calculated +to produce realistic lighting at dawn and dusk. + +Based on the techniques described in "A Scalable and Production Ready Sky and +Atmosphere Rendering Technique" by Sébastien Hillaire +(https://sebh.github.io/publications/egsr2020.pdf). */ class Sky: public Effect { @@ -69,6 +74,7 @@ private: const Program &backdrop_shprog; const Sampler &sampler; const Sampler &wrap_sampler; + const Texture &dummy_texture; mutable ProgramData shdata; float view_height; bool rendered;