当前位置:网站首页>[unity shader ablation effect _ case sharing]
[unity shader ablation effect _ case sharing]
2022-07-01 06:24:00 【The king of scrolls is coming】
1. Implementation logic
The ablation effect is mainly based on Shader Medium clip() function , That is, transparent test function , stay ASE It's called in Chinese “Opacity Mask”.
The ablation effect is based on a “Noise” Texture map can be calculated ,“Noise” The gray range of texture image is [0,1] .
Start by adding a value to the texture map “v = 1” , Make the interval of gray value on the texture become [1 , 2].
Then gradually reduce v value , When “v = -1” when , The gray value on the texture becomes [-1 , 0].
Transmit the change process of texture to Cilp() Function can realize the effect of gradual ablation of the model , And through v To control the degree of ablation , The range of values is **[-1 , 1]**.
2. Resources to prepare
“Noise” Texture map is in Photoshop Drawing in .
The method is as follows :
stay Photoshop Create a 512*512 The gray image .

Click on the filter -> Rendering -> cloud , Generate for the current graph Noise texture .

Click menu image -> Auto tone , Use the darkest pixel in the image to achieve 0、 The brightest pixel has a gray value of 255.
边栏推荐
- Uniapp tree level selector
- XAF Bo of dev XPO comparison
- Minio error correction code, construction and startup of distributed Minio cluster
- UOW of dev XPO comparison
- JDBC connection pool
- pycharm 配置jupyter
- make: g++:命令未找到
- DHT11 temperature and humidity sensor
- [ManageEngine Zhuohao] mobile terminal management solution, helping the digital transformation of Zhongzhou aviation industry
- Although pycharm is marked with red in the run-time search path, it does not affect the execution of the program
猜你喜欢

【自动化运维】自动化运维平台有什么用
![[ManageEngine Zhuohao] helps Julia college, the world's top Conservatory of music, improve terminal security](/img/fb/0a9f0ea72efc4785cc21fd0d4830c2.png)
[ManageEngine Zhuohao] helps Julia college, the world's top Conservatory of music, improve terminal security

How does the port scanning tool help enterprises?

【企业数据安全】升级备份策略 保障企业数据安全
![[ManageEngine] how to realize network automatic operation and maintenance](/img/8a/75332d3180f92c6a6482d881032bbf.png)
[ManageEngine] how to realize network automatic operation and maintenance
![[automatic operation and maintenance] what is the use of the automatic operation and maintenance platform](/img/14/756d566744d6e4a988a284c5b30130.png)
[automatic operation and maintenance] what is the use of the automatic operation and maintenance platform

【Unity Shader 消融效果_案例分享】

Arcserver password reset (account cannot be reset)

C语言课设学生信息管理系统(大作业)

端口扫描工具对企业有什么帮助?
随机推荐
三分钟带你快速了解网站开发的整个流程
请求模块(requests)
B-tree series
Projects and dependencies in ABP learning solutions
68 Cesium代码datasource加载czml
Make: g++: command not found
HCM Beginner (III) - quickly enter pa70 and pa71 to browse employee information PA10
C语言课设销售管理系统设计(大作业)
Excel visualization
[network security tool] what is the use of USB control software
HCM Beginner (IV) - time
FPGA - clocking -02- clock wiring resources of internal structure of 7 Series FPGA
Although pycharm is marked with red in the run-time search path, it does not affect the execution of the program
地宫取宝(记忆化深搜)
讓田頭村變甜頭村的特色農產品是仙景芋還是白菜
SQL中DML语句(数据操作语言)
Recueillir des trésors dans le palais souterrain (recherche de mémoire profonde)
Golang panic recover custom exception handling
c# Xml帮助类
高阶-二叉平衡树