Shader graph questions about reusing node

Hi!

Is there any effect on performance if I repeat a node in shader graph? For example, to create 2 scene depth (both eye space). I want to believe that it “reuses” the code, right?

Tks

There shouldn’t be, no.

I don’t believe Shader Graph itself is smart enough to reuse code, but that’s fine. Most shaded compilers will merge repeated code.

1 Like