Compiling material nodegraph to shaders