当前位置:网站首页>使用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节点输出的亮度是环境光的亮度,我试了一下,用这个与原色相乘,果然正确!这咋回事呢?有大神给科普一下吧,不胜感激!
边栏推荐
- ACL access control of squid proxy server
- Can automate - 10k, can automate - 20K, do you understand automated testing?
- MCN机构遍地开花:博主和作者要谨慎签约、行业水很深
- QT package the EXE file to solve the problem that "the program input point \u zdapvj cannot be located in the dynamic link library qt5cored.dll"
- The Oracle 11g RAC cluster database cannot be started due to directory permission errors
- Use of hashcat
- Intranet learning notes (5)
- 【STL源码剖析】配置器(待补充)
- Are programmers from Huawei, Alibaba and other large manufacturers really easy to find?
- Software testing salary in first tier cities - are you dragging your feet
猜你喜欢

测试/开发程序员,30而立,你是否觉得迷茫?又当何去何从......

都2022年了,你还不了解什么是性能测试?

3年测试经验,连简历上真正需要什么都没搞明白,张口就要20k?

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

leecode学习笔记-机器人走到终点的最短路径

背了八股文,六月赢麻了……
![Planification du réseau | [quatre couches de réseau] points de connaissance et exemples](/img/c3/d7f382409e99eeee4dcf4f50f1a259.png)
Planification du réseau | [quatre couches de réseau] points de connaissance et exemples

qt打包exe文件,解决“无法定位程序输入点_ZdaPvj于动态链接库Qt5Cored.dll”

Yarn: unable to load file c:\users\xxx\appdata\roaming\npm\yarn PS1 because running scripts is prohibited on this system

Lizuofan, co-founder of nonconvex: Taking quantification as his lifelong career
随机推荐
把 Oracle 数据库从 Windows 系统迁移到 Linux Oracle Rac 集群环境(3)—— 把数据库设置为归档模式
高速缓存Cache详解(西电考研向)
Centos7.3 modifying MySQL default password_ Explain centos7 modifying the password of the specified user in MySQL
软件测试人员的7个等级,据说只有1%的人能做到级别7
Yarn: unable to load file c:\users\xxx\appdata\roaming\npm\yarn PS1 because running scripts is prohibited on this system
ProcessOn制作ER过程(自定义)
疫情防控,居家办公,网上授课之心得 | 社区征文
2022年云计算应用关键威胁调查
計網 | 【四 網絡層】知識點及例題
ARM汇编中的栈桢小结
Can automate - 10k, can automate - 20K, do you understand automated testing?
The Oracle 11g RAC cluster database cannot be started due to directory permission errors
PE文件基础结构梳理
JS regular matching numbers, upper and lower case letters, underscores, midlines and dots [easy to understand]
入坑机器学习:一,绪论
记一次beego通过go get命令后找不到bee.exe的坑
PyTorch学习笔记(七)------------------ Vision Transformer
把 Oracle 数据库从 Windows 系统迁移到 Linux Oracle Rac 集群环境(1)——迁移数据到节点1
Using qdomdocument to manipulate XML files in QT
一线城市软件测试工资——你拖后腿了吗