XRoom_Unity/Assets/beantowel/Aerosol
2025-05-31 10:20:20 +03:30
..
Documentation no message 2025-05-31 10:20:20 +03:30
Materials no message 2025-05-31 10:20:20 +03:30
Prefabs no message 2025-05-31 10:20:20 +03:30
Scenes no message 2025-05-31 10:20:20 +03:30
Scripts no message 2025-05-31 10:20:20 +03:30
Shaders no message 2025-05-31 10:20:20 +03:30
Documentation.meta no message 2025-05-31 10:20:20 +03:30
LICENSE.txt no message 2025-05-31 10:20:20 +03:30
LICENSE.txt.meta no message 2025-05-31 10:20:20 +03:30
Materials.meta no message 2025-05-31 10:20:20 +03:30
Prefabs.meta no message 2025-05-31 10:20:20 +03:30
README.md no message 2025-05-31 10:20:20 +03:30
README.md.meta no message 2025-05-31 10:20:20 +03:30
Scenes.meta no message 2025-05-31 10:20:20 +03:30
Scripts.meta no message 2025-05-31 10:20:20 +03:30
Shaders.meta no message 2025-05-31 10:20:20 +03:30

Aerosol

This project implements a simplified version of Precomputed Atmospheric Scattering in Unity.

skybox

Usage

The Scenes/Demo contains a simple working example. To use this skybox, follow these steps:

  • Drag the prefab in Prefabs/AerosolSkybox into your scene for texture pre-computation.
  • Assign the material in Materials/Skybox as the skybox material. Also, remember select your sun source in the same tab.
  • In the script context menu, use GenHeader tab to re-generate header.hlsl for different atmosphere parameters.

Now you can play with the skybox material. If you want more control of the atmosphere parameters, modify the values in Prefabs/AerosolConfig.asset, then use the context menu GenHeader to re-generate the header file Shaders/header.hlsl which provides atmosphere constants for shaders.

License

This project is released under the BSD license.