当前位置:网站首页>Unity's ASE realizes cartoon flame
Unity's ASE realizes cartoon flame
2022-07-07 15:06:00 【PassionY】
One . Preface
Generally, we realize the fire effect in the game , All through particle effects , Although the effect is good , But with particle effects , If there are too many particles , Will take up a lot of cpu performance , Even cause the frame to jam . So I'm going to use shader Achieve a flame effect , hold cpu Pressure transferred gpu Up . And it works better .
Look at the effect :
Two . Implementation logic
The realization of this effect is mainly divided into 3 Parts of
1. Realize the fluctuation effect of flame
Through a dot chart , Scale different sizes separately , Staggered upward translation , Realize the fluctuation effect of flame .
Then through a flame shape mask diagram , Get the basic shape of the flame
2. adopt step function , Separate and color the inner flame from the outer flame . Get a colored flame .
3. Implement a gradient , Make the flame more realistic .
边栏推荐
- 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
- Integer learning
- 暑期安全很重要!应急安全教育走进幼儿园
- 13 ux/ui/ue best creative inspiration websites in 2022
- Apache多个组件漏洞公开(CVE-2022-32533/CVE-2022-33980/CVE-2021-37839)
- 数据库如何进行动态自定义排序?
- Bits and Information & integer notes
- Ctfshow, information collection: web10
- IDA pro逆向工具寻找socket server的IP和port
- Find your own value
猜你喜欢
Bill Gates posted his resume 48 years ago: "it's not as good-looking as yours."
Zhiting doesn't use home assistant to connect Xiaomi smart home to homekit
CTFshow,信息搜集:web6
Novel Slot Detection: A Benchmark for Discovering Unknown Slot Types in the Dialogue System
How bad can a programmer be? Nima, they are all talents
Change win10 Screensaver
上半年晋升 P8 成功,还买了别墅!
Summer safety is very important! Emergency safety education enters kindergarten
[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 - day18
随机推荐
What are PV and UV? pv、uv
Infinite innovation in cloud "vision" | the 2022 Alibaba cloud live summit was officially launched
拜拜了,大厂!今天我就要去厂里
Find your own value
[server data recovery] a case of RAID data recovery of a brand StorageWorks server
[server data recovery] a case of RAID data recovery of a brand StorageWorks server
CTFshow,信息搜集:web10
Full details of efficientnet model
Integer learning
Novel Slot Detection: A Benchmark for Discovering Unknown Slot Types in the Dialogue System
Introduction and use of Kitti dataset
Wechat applet - Advanced chapter component packaging - Implementation of icon component (I)
"July 2022" Wukong editor update record
缓冲区溢出保护
什麼是數據泄露
Ctfshow, information collection: web14
一个需求温习到的所有知识,h5的表单被键盘遮挡,事件代理,事件委托
Unity之ASE实现全屏风沙效果
Ctfshow, information collection: web4
JSON parsing instance (QT including source code)