当前位置:网站首页>使用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节点输出的亮度是环境光的亮度,我试了一下,用这个与原色相乘,果然正确!这咋回事呢?有大神给科普一下吧,不胜感激!
边栏推荐
- 计算机三级(数据库)备考题目知识点总结
- Cusdis - lightweight, privacy first open source comment system | chain of the city
- [i.mx6ul] u-boot migration (VI) network driver modification lan8720a
- 商城项目 pc----商品详情页
- Smartctl opens the device and encounters permission denied problem troubleshooting process record
- 华为、阿里等大厂程序员真的好找对象吗?
- Intranet learning notes (5)
- 进入阿里做测试员遥不可及?这里或许有你想要的答案
- 记一次beego通过go get命令后找不到bee.exe的坑
- 保险APP适老化服务评测分析2022第06期
猜你喜欢
It's 2022, and you still don't know what performance testing is?
random list随机生成不重复数
李宏毅《机器学习》丨6. Convolutional Neural Network(卷积神经网络)
【STL源码剖析】配置器(待补充)
PyTorch学习笔记(七)------------------ Vision Transformer
AI服装生成,帮你完成服装设计的最后一步
Pit entry machine learning: I. Introduction
Network planning | [four network layers] knowledge points and examples
Talking about the advantages of flying book in development work | community essay solicitation
记一次beego通过go get命令后找不到bee.exe的坑
随机推荐
Random list random generation of non repeating numbers
同花顺是正规平台吗?同花顺开户安全吗
中信证券手机开户是靠谱的吗?安全吗
計網 | 【四 網絡層】知識點及例題
How to quickly familiarize yourself with the code when you join a new company?
Charles 抓包工具
EasyCVR国标协议接入的通道,在线通道部分播放异常是什么原因?
ida中交叉引用的解析
都2022年了,你还不了解什么是性能测试?
MOS tube related knowledge
What are the reasons for the abnormal playback of the online channel of the channel accessed by easycvr national standard protocol?
把 Oracle 数据库从 Windows 系统迁移到 Linux Oracle Rac 集群环境(1)——迁移数据到节点1
李宏毅《机器学习》丨6. Convolutional Neural Network(卷积神经网络)
Migrate Oracle database from windows system to Linux Oracle RAC cluster environment (3) -- set the database to archive mode
Is the compass reliable? Is it safe to open a securities account?
How to uninstall CUDA
做软件安全测试的作用,如何寻找软件安全测试公司出具报告?
File system - basic knowledge of disk and detailed introduction to FAT32 file system
What is the reason for the disconnection of video playback due to the EHOME protocol access of easycvr platform?
Using qdomdocument to manipulate XML files in QT