当前位置:网站首页>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
边栏推荐
- [server data recovery] a case of RAID data recovery of a brand StorageWorks server
- "Baidu Cup" CTF competition 2017 February, web:include
- #yyds干货盘点# 解决名企真题:交叉线
- CTFshow,信息搜集:web3
- Why do we use UTF-8 encoding?
- Ffmpeg --- image processing
- Ascend 910 realizes tensorflow1.15 to realize the Minist handwritten digit recognition of lenet network
- Full details of efficientnet model
- Used by Jetson AgX Orin canfd
- Delete a whole page in word
猜你喜欢

【数据挖掘】视觉模式挖掘:Hog特征+余弦相似度/k-means聚类

Navigation — 这么好用的导航框架你确定不来看看?

Zhiting doesn't use home assistant to connect Xiaomi smart home to homekit

Qu'est - ce qu'une violation de données

asp. Netnba information management system VS development SQLSERVER database web structure c programming computer web page source code project detailed design

Apache多个组件漏洞公开(CVE-2022-32533/CVE-2022-33980/CVE-2021-37839)

MySQL bit类型解析

【數據挖掘】視覺模式挖掘:Hog特征+餘弦相似度/k-means聚類

#yyds干货盘点# 解决名企真题:交叉线

上半年晋升 P8 成功,还买了别墅!
随机推荐
Emqx 5.0 release: open source Internet of things message server with single cluster supporting 100million mqtt connections
"July 2022" Wukong editor update record
Delete a whole page in word
MySQL installation configuration 2021 in Windows Environment
@ComponentScan
什麼是數據泄露
Read PG in data warehouse in one article_ stat
TypeScript 发布 4.8 beta 版本
CTFshow,信息搜集:web7
CTFshow,信息搜集:web9
激光雷达lidar知识点滴
What is data leakage
广州开发区让地理标志产品助力乡村振兴
【数据挖掘】视觉模式挖掘:Hog特征+余弦相似度/k-means聚类
PG basics -- Logical Structure Management (locking mechanism -- table lock)
Compile advanced notes
Niuke real problem programming - Day10
Summary on adding content of background dynamic template builder usage
CTFshow,信息搜集:web13
Mathematical modeling -- what is mathematical modeling