Reputation: 1
How in maya C++ do I create custom shaders/materials?
I also need to obviously also attach the shader code to this material.
I know how to access Materials with the API just creating seems difficult.
Upvotes: 0
Views: 1039
Reputation: 5895
You can create your own dependency graph node with mpxnode and create your own function to do you shader calculations. There are enough example shader codes in maya devkit. Here is the very basic lambert shader code from devkit. You can take a look in this.
And here is full list of example codes
Upvotes: 2