Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Maya C++ 中创建自定义着色器/材质?
显然,我还需要将着色器代码附加到此材质上。
我知道如何使用刚刚创建的 API 访问材料似乎很困难。
您可以使用 mpxnode 创建自己的依赖关系图节点,并创建自己的函数来进行着色器计算。maya devkit 中有足够的示例着色器代码。这是来自 devkit 的非常基本的 Lambert 着色器代码。你可以看看这个。
灯光着色器
这是示例代码的完整列表