Traditional Culture Encyclopedia - Weather forecast - Does unity have a plug-in to simulate lightning weather?
Does unity have a plug-in to simulate lightning weather?
& ltpre t="code" l="js "> function SetSkyLight() {
If (during the day) {
render settings . skybox = day sky;
skyLight.color = dayColor
}
Otherwise {
render settings . sky box = night sky;
skyLight.color = nightColor
}
}2. Write a shader to control the blending of sky maps. 3. Make a parallel light, that is, the main light source, to simulate the sun, and then rotate the whole scene or parallel light, which is equivalent to rotating the earth.
4. Use plug-ins, such as time plug-ins, alternation of day and night, atmospheric scattering, cloud changes, weather systems and sun and moon lighting. The case project after Unity 5 also shows the content of day and night rotation.
- Previous article:Weather forecast of farmland in Lingshui, Hainan
- Next article:How to mop the floor when returning to Nantian
- Related articles
- What are the sentences about the weather?
- Weather forecast of Tai 'an West Campus of Shanke University
- What does gust mean?
- Is it normal not to eat on a hot day?
- What does air skateboarding mean?
- Characteristics of Yaolin Forest Park
- Chinese character short story 20 words
- Does the typhoon have anything to do with the weather?
- What's the temperature in Shanghai in February?
- Tianshui Tourist Attractions Introduction of Daquan Tourist Attractions in Tianshui Scenic Area, Jilin Province