Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

ShaderGraph: AbstractMaterialNode vs CodeFunctionNode

Discussion in 'Graphics Experimental Previews' started by TFgamesOG, Jul 31, 2018.

  1. TFgamesOG

    TFgamesOG

    Joined:
    Jun 2, 2017
    Posts:
    16
    Hello guys!

    I've already asked the question in the Feedback-channel, but I'm afraid, that it has been overlooked:

    I dug deeper into the shader graph code and wondered what the precise difference between AbstractMaterialNodes and CodeFunctionNodes are?

    I understand, that CodeFunctionNodes generate functions that are then reused within the shader. Even though I understand what the classes are doing, I don't 100% understand what the exact distinction between the two types of nodes is. Can you explain that to me?

    Thank you so much!