Ilan Keshet
Ilan Keshet

Reputation: 1

Maya C++ Creating Custom Material

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

Answers (1)

Achayan
Achayan

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.

Light Shader

And here is full list of example codes

Upvotes: 2

Related Questions