作为Shadergraph新手在制作顶点动画的时候遇到了顶点着色器中Position节点没法连接的问题,在仔细阅读文档的时候,发了问题,这里特此记录。

这个时候需要去检查顶点着色器中是否存在纹理采样,如果存在纹理采样是不是使用的Sample Texture 2D LOD,如果不是就没法进行连接

The reason is that when you output to the vertex position, the shader is running in the vertex stage. And at that moment, the GPU can't have the informations needed to auto-compute the texture LOD, thus why you need to use this node and specify the LOD you want to use.
Shader Graph Editor, doesn't let me connect wires - Unity Forum

在尝试使用Shadergraph制作顶点动画时,遇到Position节点无法连接的问题。原因是顶点着色器阶段GPU无法自动计算纹理LOD。解决方案是检查是否使用了SampleTexture2DLOD来指定所需的LOD级别。Unity论坛的讨论提供了这一关键信息。
最低0.47元/天 解锁文章
1360

被折叠的 条评论
为什么被折叠?



