China Naming Network - Ziwei Dou Shu - Is there a plug-in for simulating thunder and lightning weather in Unity?
Is there a plug-in for simulating thunder and lightning weather in Unity?
There are several methods for this: 1. Make a few Skyboxes, and then switch at a certain time. For example:
function SetSkyLight() {if (daytime) {
RenderSettings.skybox = daySky;
skyLight.color = dayColor;
}
else {
RenderSettings.skybox = nightSky;
< p>skyLight.color = nightColor;}
} 2. Write a Shader to control the mixing of sky textures 3. Make a directional light, which is the main light source to simulate the sun. Then rotate the entire scene or directional light, which is equivalent to rotating the earth.
4. Use plug-ins, such as the time of day plug-in, for day and night alternation, atmospheric scattering, cloud and fog changes, weather systems, sun and moon illumination, etc. The case projects after Unity 5 also show the content of day and night rotation.