当前位置:网站首页>Unity's ASE achieves full screen sand blowing effect
Unity's ASE achieves full screen sand blowing effect
2022-07-07 15:07:00 【PassionY】
Preface
Recently, I was working on a desert environment 2D game , It needs to add a full screen special effect of sandstorm , Originally, we used particle effects , But later I found , There are a lot of particles , Performance consumption is very high . And because it is full screen sandstorm , When the particle effect area is too large , When there are too many layers , Caused by the overdraw An increase in , Can make cpu More stressful . Even eventually, our game will get stuck when switching between front and back stages .
therefore , We finally plan to use shader To achieve a sandstorm effect , Although it can't completely simulate the effect of particles , But basically restore 90% The wind and sand effect .
Look at the renderings first :
Realization principle
1. Realization of wind principle : Use a flowing noise map , Realize the image of clouds UV Disturbance .
2. Sand realize principle : First let the grainy or strip picture translate in the wind , Then use a noise map R The channel kicks out the translation result of sand , Finally, multiply by a superimposed color .
Noise interference
The flow principle of noise map is shown in the figure below :
Attribute setting of wind
Attribute setting of sand
边栏推荐
- Pinduoduo lost the lawsuit, and the case of bargain price difference of 0.9% was sentenced; Wechat internal test, the same mobile phone number can register two account functions; 2022 fields Awards an
- Infinite innovation in cloud "vision" | the 2022 Alibaba cloud live summit was officially launched
- Niuke real problem programming - Day9
- IDA pro逆向工具寻找socket server的IP和port
- 连接ftp服务器教程
- WebRTC 音频抗弱网技术(上)
- 拜拜了,大厂!今天我就要去厂里
- 广州开发区让地理标志产品助力乡村振兴
- Compile advanced notes
- Niuke real problem programming - day20
猜你喜欢
Zhiting doesn't use home assistant to connect Xiaomi smart home to homekit
[understanding of opportunity -40]: direction, rules, choice, effort, fairness, cognition, ability, action, read the five layers of perception of 3GPP 6G white paper
Niuke real problem programming - Day17
MySQL installation configuration 2021 in Windows Environment
"Baidu Cup" CTF competition 2017 February, web:include
Niuke real problem programming - Day11
拜拜了,大厂!今天我就要去厂里
“百度杯”CTF比赛 2017 二月场,Web:include
Yyds dry goods inventory # solve the real problem of famous enterprises: cross line
【OBS】RTMPSockBuf_ Fill, remote host closed connection.
随机推荐
Zhiting doesn't use home assistant to connect Xiaomi smart home to homekit
2022年5月互联网医疗领域月度观察
Cocoscreator resource encryption and decryption
Ctfshow, information collection: web10
什么是数据泄露
Ctfshow, information collection: web7
【深度学习】图像超分实验:SRCNN/FSRCNN
[understanding of opportunity -40]: direction, rules, choice, effort, fairness, cognition, ability, action, read the five layers of perception of 3GPP 6G white paper
Bill Gates posted his resume 48 years ago: "it's not as good-looking as yours."
What is the process of ⼀ objects from loading into JVM to being cleared by GC?
Pandora IOT development board learning (HAL Library) - Experiment 12 RTC real-time clock experiment (learning notes)
智汀不用Home Assistant让小米智能家居接入HomeKit
What are PV and UV? pv、uv
Protection strategy of server area based on Firewall
Read PG in data warehouse in one article_ stat
暑期安全很重要!应急安全教育走进幼儿园
Niuke real problem programming - Day11
【深度学习】语义分割实验:Unet网络/MSRC2数据集
Stream learning notes
13 ux/ui/ue best creative inspiration websites in 2022