当前位置:网站首页>[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.
边栏推荐
- What are the functions of LAN monitoring software
- webapck打包原理--启动过程分析
- HCM Beginner (III) - quickly enter pa70 and pa71 to browse employee information PA10
- idea 好用插件汇总!!!
- Forkjoin and stream flow test
- 手把手教你实现一个深度学习框架...
- 蚂蚁新村田头村变甜头村 让厦门灌口镇田头村变甜头村的特色农产品之一是
- golang panic recover自定义异常处理
- 【企业数据安全】升级备份策略 保障企业数据安全
- 68 Cesium代码datasource加载czml
猜你喜欢

ArcServer密码重置(账号不可以重置)
![Pit of kotlin bit operation (bytes[i] and 0xff error)](/img/2c/de0608c29d8af558f6f8dab4eb7fd8.png)
Pit of kotlin bit operation (bytes[i] and 0xff error)

One of the characteristic agricultural products that make Tiantou village, Guankou Town, Xiamen into a "sweet" village is
![[ITSM] what is ITSM and why does it department need ITSM](/img/e1/85b5f00f124829b6a6b40c5cf621bd.png)
[ITSM] what is ITSM and why does it department need ITSM

【自动化运维】自动化运维平台有什么用

C语言课设工资管理系统(大作业)

虚幻 简单的屏幕雨滴后处理效果

ForkJoin和Stream流测试

JMM详解

Discrimination between left and right limits of derivatives and left and right derivatives
随机推荐
golang panic recover自定义异常处理
HCM Beginner (II) - information type
讓田頭村變甜頭村的特色農產品是仙景芋還是白菜
[summary of knowledge points] chi square distribution, t distribution, F distribution
Discrimination between left and right limits of derivatives and left and right derivatives
Distributed lock implementation
XAF Bo of dev XPO comparison
1034 Head of a Gang
[summary of problem thinking] Why is the register reset performed in user mode?
Self confidence is indispensable for technology
kubeadm搭建kubenetes 集群(个人学习版)
SystemVerilog learning-06-class encapsulation
【自动化运维】自动化运维平台有什么用
lxml模块(数据提取)
Factorial divisor (unique decomposition theorem)
【#Unity Shader#自定义材质面板_第二篇】
【网络安全工具】USB控制软件有什么用
C语言课设图书信息管理系统(大作业)
Save data in browser to local file
To sort out the anomaly detection methods, just read this article!