Cannot Connect float3 output to Vertex Position Node in Shader Graph

Here’s something I’m trying to do with my outline shader. I cannot hook the float3 result to the Vertex Position node. Is there any way to work around this issue? What’s the problem?

Please help me out.

Thanks in advance.

There are a few nodes whos output is only available for use in the fragment shader. In your case, it’s the Is Front Face node. If you take a look at the documentation for that node, you can see that it only works in the fragment shader. So that’s why you’re being prevented from connecting your node network - because it contains that node.

1 Like

Thank you so much for the reply. I’ve got the idea.

The essence is this I suppose; the vertices are not there yet, we cannot know which face is which in that phase. So “isFrontFace” check cannot be done in something that will be hooked to the Vertex node.

That’s exactly right.