当前位置:网站首页>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
边栏推荐
- 【深度学习】语义分割实验:Unet网络/MSRC2数据集
- Promoted to P8 successfully in the first half of the year, and bought a villa!
- PG基础篇--逻辑结构管理(锁机制--表锁)
- Today's sleep quality record 78 points
- 简述keepalived工作原理
- Stream learning notes
- Unity之ASE实现全屏风沙效果
- Change win10 Screensaver
- Ascend 910 realizes tensorflow1.15 to realize the Minist handwritten digit recognition of lenet network
- Guangzhou Development Zone enables geographical indication products to help rural revitalization
猜你喜欢

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

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

CTFshow,信息搜集:web2

Ctfshow, information collection: Web3

安恒堡垒机如何启用Radius双因素/双因子(2FA)身份认证

Ctfshow, information collection: web6

Yyds dry goods inventory # solve the real problem of famous enterprises: cross line

Niuke real problem programming - Day12

Discussion on CPU and chiplet Technology

Ctfshow, information collection: web4
随机推荐
Guangzhou Development Zone enables geographical indication products to help rural revitalization
【服务器数据恢复】某品牌StorageWorks服务器raid数据恢复案例
Ctfshow, information collection: web5
激光雷達lidar知識點滴
CTFshow,信息搜集:web10
Es log error appreciation -trying to create too many buckets
Delete a whole page in word
6. Electron borderless window and transparent window lock mode setting window icon
CTFshow,信息搜集:web7
FFmpeg----图片处理
暑期安全很重要!应急安全教育走进幼儿园
C 6.0 language specification approved
Novel Slot Detection: A Benchmark for Discovering Unknown Slot Types in the Dialogue System
Qu'est - ce qu'une violation de données
⼀个对象从加载到JVM,再到被GC清除,都经历了什么过程?
Concurrency Control & NoSQL and new database
Niuke real problem programming - day14
Novel Slot Detection: A Benchmark for Discovering Unknown Slot Types in the Dialogue System
Navigation - are you sure you want to take a look at such an easy-to-use navigation framework?
STM32F103C8T6 PWM驱动舵机(SG90)