当前位置:网站首页>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 .
边栏推荐
- 【深度学习】图像超分实验:SRCNN/FSRCNN
- Delete a whole page in word
- leetcode 241. Different Ways to Add Parentheses 为运算表达式设计优先级(中等)
- What is cloud primordial? This time, I can finally understand!
- Ctfshow, information collection: web6
- 回归测试的分类
- 一文读懂数仓中的pg_stat
- 激光雷達lidar知識點滴
- PG basics -- Logical Structure Management (locking mechanism -- table lock)
- Classification of regression tests
猜你喜欢
Unity之ASE实现全屏风沙效果
How to enable radius two factor / two factor (2fa) identity authentication for Anheng fortress machine
智汀不用Home Assistant让小米智能家居接入HomeKit
asp.netNBA信息管理系统VS开发sqlserver数据库web结构c#编程计算机网页源码项目详细设计
数学建模——什么是数学建模
Ctfshow, information collection: web8
Cocoscreator operates spine for animation fusion
【深度学习】图像超分实验:SRCNN/FSRCNN
防火墙基础之服务器区的防护策略
Ctfshow, information collection: web2
随机推荐
Spatiotemporal deformable convolution for compressed video quality enhancement (STDF)
CTFshow,信息搜集:web4
Bill Gates posted his resume 48 years ago: "it's not as good-looking as yours."
leetcode 241. Different Ways to Add Parentheses 为运算表达式设计优先级(中等)
Infinite innovation in cloud "vision" | the 2022 Alibaba cloud live summit was officially launched
[today in history] July 7: release of C; Chrome OS came out; "Legend of swordsman" issued
TypeScript 发布 4.8 beta 版本
Ctfshow, information collection: web12
激光雷达lidar知识点滴
Mathematical modeling -- what is mathematical modeling
Niuke real problem programming - day13
Electronic remote error
Used by Jetson AgX Orin canfd
[server data recovery] a case of RAID data recovery of a brand StorageWorks server
@ComponentScan
Deformable convolutional dense network for enhancing compressed video quality
13 ux/ui/ue best creative inspiration websites in 2022
Navigation — 这么好用的导航框架你确定不来看看?
buffer overflow protection
Read PG in data warehouse in one article_ stat