当前位置:网站首页>[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.
边栏推荐
- High order binary balanced tree
- 证券类开户有什么影响 开户安全吗
- The row and column numbers of each pixel of multi-source grid data in the same area are the same, that is, the number of rows and columns are the same, and the pixel size is the same
- 局域网监控软件有哪些功能
- 【ManageEngine】如何实现网络自动化运维
- Pychart configuring jupyter
- [ManageEngine Zhuohao] the role of LAN monitoring
- Teach you how to implement a deep learning framework
- Factorial divisor (unique decomposition theorem)
- C语言课设学生信息管理系统(大作业)
猜你喜欢

Tidb single machine simulation deployment production environment cluster (closed pit practice, personal test is effective)
![[file system] how to run squashfs on UBI](/img/d7/a4769420c510c47f3c2a615b514a8e.png)
[file system] how to run squashfs on UBI

【ManageEngine卓豪】网络运维管理是什么,网络运维平台有什么用

让厦门灌口镇田头村变“甜头”村的特色农产品之一是

JDBC database operation

B-树系列

68 Cesium代码datasource加载czml

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

ArcServer密码重置(账号不可以重置)

One of the characteristic agricultural products that make Tiantou village, Guankou Town, Xiamen into a "sweet" village is
随机推荐
How does the port scanning tool help enterprises?
【#Unity Shader#自定义材质面板_第一篇】
Flink practice -- multi stream merge
局域网监控软件有哪些功能
What are the functions of LAN monitoring software
C语言课设学生选修课程系统(大作业)
码力十足学量化|如何在财务报告寻找合适的财务公告
[ManageEngine Zhuohao] helps Julia college, the world's top Conservatory of music, improve terminal security
地宮取寶(記憶化深搜)
Movable mechanical wall clock
【#Unity Shader#自定义材质面板_第二篇】
Projects and dependencies in ABP learning solutions
B-树系列
What is a port scanning tool? What is the use of port scanning tools
SystemVerilog learning-10-validation quantification and coverage
B-tree series
Dongle data collection
【企业数据安全】升级备份策略 保障企业数据安全
High order binary balanced tree
C语言课设学生考勤系统(大作业)