当前位置:网站首页>使用ShaderGraph制作边缘融合粒子Shader的启示
使用ShaderGraph制作边缘融合粒子Shader的启示
2022-06-24 23:04:00 【ttod】
先上图:

启示一:
粒子生命周期Color控制的是Vertex Color的值,所以要想让使用这个Shader的粒子能够控制生命周期的颜色,需要使用Vertex Color节点与Color节点和SampleTexture2D节点相乘。
启示二:
节点SceneDepth在Eye选项下是基于视角的原始深度值,也就是基于摄像机空间的位置的Z坐标的绝对值,不是0,1范围内的深度值。ScreenPosition使用Raw选项时,A分量是当前渲染内容的Z坐标的绝对值,由于是粒子系统,该渲染应该是处于透明渲染阶段,如果该像素点深度检测通过,说明A分量小于对应原始深度值,可以根据两者的差值影响该像素的透明值。
启示三:
如果使用Lit形式的ShaderGraph模板,粒子会受到灯光影响,由于粒子总是朝向摄像机,这可能导致从不同的方向观察粒子时亮度明显变化,所以使用了Unlit模板的粒子,这里只让环境光来影响粒子的亮度,本来以为应该使用Ambient节点的Color/Sky输出来与颜色相乘,但是这个Ambient节点不按我的理解输出,总是输出0,根本没法用。谷歌上搜索了一下国外的帖子,有人说Baked GI节点输出的亮度是环境光的亮度,我试了一下,用这个与原色相乘,果然正确!这咋回事呢?有大神给科普一下吧,不胜感激!
边栏推荐
- 中信证券手机开户是靠谱的吗?安全吗
- AI服装生成,帮你完成服装设计的最后一步
- 会自动化—10K,能做自动化—20K,你搞懂自动化测试没有?
- I've been doing software testing for two years. I'd like to give some advice to girls who are still hesitating
- MOS tube related knowledge
- Left hand dreams right hand responsibilities GAC Honda not only pays attention to sales but also children's safety
- Pit entry machine learning: I. Introduction
- File system - basic knowledge of disk and detailed introduction to FAT32 file system
- 高数 | 精通中值定理 解题套路汇总
- 华为、阿里等大厂程序员真的好找对象吗?
猜你喜欢

都2022年了,你还不了解什么是性能测试?
![[analysis of STL source code] functions and applications of six STL components (directory)](/img/f2/872fd93ef52b1424343ba634be24f6.png)
[analysis of STL source code] functions and applications of six STL components (directory)

如何通过EasyCVR接口监测日志观察平台拉流情况?

软件测试人员的7个等级,据说只有1%的人能做到级别7

What are the reasons for the abnormal playback of the online channel of the channel accessed by easycvr national standard protocol?

DDD concept is complex and difficult to understand. How to design code implementation model in practice?

yarn : 无法加载文件 C:\Users\xxx\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本

Once beego failed to find bee after passing the go get command Exe's pit

Intranet learning notes (5)

Use of hashcat
随机推荐
[I.MX6UL] U-Boot移植(六) 网络驱动修改 LAN8720A
Sumati gamefi ecological overview, element design in the magical world
F - spices (linear basis)
How to choose a regular and safe foreign exchange trading platform?
当一个接口出现异常时候,你是如何分析异常的?
Are programmers from Huawei, Alibaba and other large manufacturers really easy to find?
Viewing MySQL password on Linux_ MySQL forgets password "suggestions collection" under Linux
The ecosystem of the yuan universe
Rod and Schwartz cooperated with ZhongGuanCun pan Lianyuan Institute to carry out 6G technology research and early verification
What are the reasons for the abnormal playback of the online channel of the channel accessed by easycvr national standard protocol?
JS regular matching numbers, upper and lower case letters, underscores, midlines and dots [easy to understand]
Intranet learning notes (5)
实战攻防演练中的四大特点
Once beego failed to find bee after passing the go get command Exe's pit
[day 26] given the ascending array nums of n elements, find a function to find the subscript of target in nums | learn binary search
3 years of testing experience. I don't even understand what I really need on my resume. I need 20K to open my mouth?
文件系统 -- 磁盘基础知识和FAT32文件系统详细介绍
【STL源码剖析】配置器(待补充)
一线城市软件测试工资——你拖后腿了吗
mysql命令备份