This shader requires the 10 EUR tier or higher
Hekky Atmosphere requires UdonSharp to work properly with VRChat. You can find the latest stable release of UdonSharp here.
This shader is currently in early access. It is likely stable enough to be used in projects, but I cannot garuantee this while it’s in early access.
The instructions below assume that you have imported a build of Hekky Shaders which include Hekky Atmosphere first.
To set up Hekky Atmosphere in a new scene:
- Create a new Skybox Material. Then change it’s shader to Hekky/Atmosphere
- Drag the material into the scene window to apply it.
- Find you sun light (usually called Directional light in a new scene), and add a new “Atmosphere System” component to it. This component is necessary as it performs some calculations which don’t make sense to compute in the shader.
- Create a new empty game object, and drag it into the Moon slot in the “Atmosphere System”. This game object will control the moon’s direction.
A sample scene is included in Hekky/Examples/Scenes/AtmosphereExample
After setting up the atmosphere system, controlling the sky is relatively easy. To control the sun, rotate the directional light, the same way you would control the sun using the default unity skybox. To control the moon, rotate the moon game object you’ve created, and it will behave similarly to the sun, only it instead controls the moon! You can then play with the parameters in the material.
Hekky Atmosphere is designed to work with post processing in mind. Therefore it is recommended to import and use post processing in scenes with Hekky Atmosphere.
If Hekky Atmosphere doesn’t suit your needs, or you’re encountering difficulties while trying to set it up, please ask for help on the Discord server.