当前位置:网站首页>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
边栏推荐
- Concurrency Control & NoSQL and new database
- Es log error appreciation -trying to create too many buckets
- Change win10 Screensaver
- 用于增强压缩视频质量的可变形卷积密集网络
- 众昂矿业:萤石继续引领新能源市场增长
- Apache多个组件漏洞公开(CVE-2022-32533/CVE-2022-33980/CVE-2021-37839)
- [understanding of opportunity -40]: direction, rules, choice, effort, fairness, cognition, ability, action, read the five layers of perception of 3GPP 6G white paper
- 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
- CTFshow,信息搜集:web14
- What are PV and UV? pv、uv
猜你喜欢

数学建模——什么是数学建模

13 ux/ui/ue best creative inspiration websites in 2022
![[server data recovery] a case of RAID data recovery of a brand StorageWorks server](/img/aa/6d820d97e82df1d908dc7aa78fc8bf.png)
[server data recovery] a case of RAID data recovery of a brand StorageWorks server

Protection strategy of server area based on Firewall

MySQL bit类型解析

【服务器数据恢复】某品牌StorageWorks服务器raid数据恢复案例

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

Novel Slot Detection: A Benchmark for Discovering Unknown Slot Types in the Dialogue System

Niuke real problem programming - day20

CTFshow,信息搜集:web6
随机推荐
Win10 or win11 taskbar, automatically hidden and transparent
上半年晋升 P8 成功,还买了别墅!
CTFshow,信息搜集:web1
What are PV and UV? pv、uv
asp.netNBA信息管理系统VS开发sqlserver数据库web结构c#编程计算机网页源码项目详细设计
The method of parsing PHP to jump out of the loop and the difference between continue, break and exit
@ComponentScan
Discussion on CPU and chiplet Technology
CTFshow,信息搜集:web2
什么是pv和uv? pv、uv
Mathematical modeling -- what is mathematical modeling
8大模块、40个思维模型,打破思维桎梏,满足你工作不同阶段、场景的思维需求,赶紧收藏慢慢学
[understanding of opportunity -40]: direction, rules, choice, effort, fairness, cognition, ability, action, read the five layers of perception of 3GPP 6G white paper
"July 2022" Wukong editor update record
Ctfshow, information collection: web4
Emqx 5.0 release: open source Internet of things message server with single cluster supporting 100million mqtt connections
Change win10 Screensaver
How bad can a programmer be? Nima, they are all talents
[today in history] July 7: release of C; Chrome OS came out; "Legend of swordsman" issued
【服务器数据恢复】某品牌StorageWorks服务器raid数据恢复案例