├── .gitignore ├── .gitmodules ├── CMakeLists.txt ├── LICENSE ├── README.md ├── data ├── atmosphere_1.jpg ├── atmosphere_2.jpg └── atmosphere_3.jpg └── src ├── .clang-format ├── CMakeLists.txt ├── atmosphere_model.cpp ├── atmosphere_model.h ├── constants.h ├── main.cpp ├── shader ├── clear_2d_cs.glsl ├── clear_3d_cs.glsl ├── compute_direct_irradiance_cs.glsl ├── compute_indirect_irradiance_cs.glsl ├── compute_multiple_scattering_cs.glsl ├── compute_scattering_density_cs.glsl ├── compute_single_scattering_cs.glsl ├── compute_transmittance_cs.glsl ├── constants.glsl ├── cubemap_fs.glsl ├── cubemap_vs.glsl ├── irradiance_functions.glsl ├── mesh_fs.glsl ├── mesh_vs.glsl ├── reflection_map_fs.glsl ├── reflection_map_vs.glsl ├── rendering_functions.glsl ├── scattering_functions.glsl ├── transmittance_functions.glsl ├── uniforms.glsl └── utility.glsl ├── texture_buffer.cpp └── texture_buffer.h /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/.gitmodules -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/README.md -------------------------------------------------------------------------------- /data/atmosphere_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/data/atmosphere_1.jpg -------------------------------------------------------------------------------- /data/atmosphere_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/data/atmosphere_2.jpg -------------------------------------------------------------------------------- /data/atmosphere_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/data/atmosphere_3.jpg -------------------------------------------------------------------------------- /src/.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/.clang-format -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/CMakeLists.txt -------------------------------------------------------------------------------- /src/atmosphere_model.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/atmosphere_model.cpp -------------------------------------------------------------------------------- /src/atmosphere_model.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/atmosphere_model.h -------------------------------------------------------------------------------- /src/constants.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/constants.h -------------------------------------------------------------------------------- /src/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/main.cpp -------------------------------------------------------------------------------- /src/shader/clear_2d_cs.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/clear_2d_cs.glsl -------------------------------------------------------------------------------- /src/shader/clear_3d_cs.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/clear_3d_cs.glsl -------------------------------------------------------------------------------- /src/shader/compute_direct_irradiance_cs.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/compute_direct_irradiance_cs.glsl -------------------------------------------------------------------------------- /src/shader/compute_indirect_irradiance_cs.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/compute_indirect_irradiance_cs.glsl -------------------------------------------------------------------------------- /src/shader/compute_multiple_scattering_cs.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/compute_multiple_scattering_cs.glsl -------------------------------------------------------------------------------- /src/shader/compute_scattering_density_cs.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/compute_scattering_density_cs.glsl -------------------------------------------------------------------------------- /src/shader/compute_single_scattering_cs.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/compute_single_scattering_cs.glsl -------------------------------------------------------------------------------- /src/shader/compute_transmittance_cs.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/compute_transmittance_cs.glsl -------------------------------------------------------------------------------- /src/shader/constants.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/constants.glsl -------------------------------------------------------------------------------- /src/shader/cubemap_fs.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/cubemap_fs.glsl -------------------------------------------------------------------------------- /src/shader/cubemap_vs.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/cubemap_vs.glsl -------------------------------------------------------------------------------- /src/shader/irradiance_functions.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/irradiance_functions.glsl -------------------------------------------------------------------------------- /src/shader/mesh_fs.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/mesh_fs.glsl -------------------------------------------------------------------------------- /src/shader/mesh_vs.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/mesh_vs.glsl -------------------------------------------------------------------------------- /src/shader/reflection_map_fs.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/reflection_map_fs.glsl -------------------------------------------------------------------------------- /src/shader/reflection_map_vs.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/reflection_map_vs.glsl -------------------------------------------------------------------------------- /src/shader/rendering_functions.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/rendering_functions.glsl -------------------------------------------------------------------------------- /src/shader/scattering_functions.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/scattering_functions.glsl -------------------------------------------------------------------------------- /src/shader/transmittance_functions.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/transmittance_functions.glsl -------------------------------------------------------------------------------- /src/shader/uniforms.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/uniforms.glsl -------------------------------------------------------------------------------- /src/shader/utility.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/shader/utility.glsl -------------------------------------------------------------------------------- /src/texture_buffer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/texture_buffer.cpp -------------------------------------------------------------------------------- /src/texture_buffer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diharaw/bruneton-sky-model/HEAD/src/texture_buffer.h --------------------------------------------------------------------------------