Shader Dev
For Arnold Render with C++

Tutorials

​

Books

    https://thebookofshaders.com/

Setting up

    1.
    Download VSC
    2.
    Download Arnold SDK

Setting up Visual Studio Code

Creating the Maya interface for your shader

Referencing your template files

    1.
    Use the template from Arnold docs​
    2.
    Open your Maya env file located in ~/Library/Preferences/Autodesk/maya/2020/
    3.
    Insert this line at the end and save the file
1
MTOA_TEMPLATES_PATH = $HOME/Documents/maya/projects/arnold
Copied!

In Professor Kesson's Cutter script editor v8.34 and above, it will automate the process of parsing your cpp file for the node parameters, and write into a python template file.

Utilities

Mix

1
AtRGB mix(AtRGB a, AtRGB b, float alpha){
2
return a*(1-alpha) +b *alpha;
3
}
4
​
Copied!
Last modified 6mo ago