当前位置:网站首页>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
边栏推荐
- Notes HCIA
- CTFshow,信息搜集:web5
- buffer overflow protection
- FFmpeg----图片处理
- @Introduction and three usages of controlleradvice
- Ctfshow, information collection: web4
- Read PG in data warehouse in one article_ stat
- 什么是pv和uv? pv、uv
- 【OBS】RTMPSockBuf_ Fill, remote host closed connection.
- 【數據挖掘】視覺模式挖掘:Hog特征+餘弦相似度/k-means聚類
猜你喜欢
知否|两大风控最重要指标与客群好坏的关系分析
Infinite innovation in cloud "vision" | the 2022 Alibaba cloud live summit was officially launched
Protection strategy of server area based on Firewall
CTFshow,信息搜集:web13
Introduction and use of Kitti dataset
CTFshow,信息搜集:web5
Why do we use UTF-8 encoding?
[server data recovery] a case of RAID data recovery of a brand StorageWorks server
Niuke real problem programming - Day10
⼀个对象从加载到JVM,再到被GC清除,都经历了什么过程?
随机推荐
Emqx 5.0 release: open source Internet of things message server with single cluster supporting 100million mqtt connections
Bits and Information & integer notes
一文读懂数仓中的pg_stat
buffer overflow protection
Stream learning notes
数据库如何进行动态自定义排序?
MySQL bit类型解析
8大模块、40个思维模型,打破思维桎梏,满足你工作不同阶段、场景的思维需求,赶紧收藏慢慢学
智汀不用Home Assistant让小米智能家居接入HomeKit
Yyds dry goods inventory # solve the real problem of famous enterprises: cross line
What is data leakage
Lidar Knowledge Drop
Five pain points for big companies to open source
Niuke real problem programming - Day17
What are PV and UV? pv、uv
TypeScript 发布 4.8 beta 版本
[server data recovery] a case of RAID data recovery of a brand StorageWorks server
Es log error appreciation -- allow delete
防火墙基础之服务器区的防护策略
Niuke real problem programming - day16