当前位置:网站首页>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 .
边栏推荐
猜你喜欢
In the field of software engineering, we have been doing scientific research for ten years!
【OBS】RTMPSockBuf_ Fill, remote host closed connection.
【服务器数据恢复】戴尔某型号服务器raid故障的数据恢复案例
Today's sleep quality record 78 points
Navigation - are you sure you want to take a look at such an easy-to-use navigation framework?
Yyds dry goods inventory # solve the real problem of famous enterprises: cross line
MySQL installation configuration 2021 in Windows Environment
13 ux/ui/ue best creative inspiration websites in 2022
JSON解析实例(Qt含源码)
MySQL bit类型解析
随机推荐
Read PG in data warehouse in one article_ stat
Jetson AGX Orin CANFD 使用
Summary on adding content of background dynamic template builder usage
[server data recovery] a case of RAID data recovery of a brand StorageWorks server
Computer win7 system desktop icon is too large, how to turn it down
13 ux/ui/ue best creative inspiration websites in 2022
In the field of software engineering, we have been doing scientific research for ten years!
Niuke real problem programming - day15
How to enable radius two factor / two factor (2fa) identity authentication for Anheng fortress machine
Novel Slot Detection: A Benchmark for Discovering Unknown Slot Types in the Dialogue System
Webrtc audio anti weak network technology (Part 1)
什么是数据泄露
Ctfshow, information collection: web4
一个需求温习到的所有知识,h5的表单被键盘遮挡,事件代理,事件委托
15、文本编辑工具VIM使用
What is data leakage
asp.netNBA信息管理系统VS开发sqlserver数据库web结构c#编程计算机网页源码项目详细设计
Spatiotemporal deformable convolution for compressed video quality enhancement (STDF)
Bits and Information & integer notes
【服务器数据恢复】某品牌StorageWorks服务器raid数据恢复案例