hwUnlitShader/ShadingConnection.h
#ifndef MAYA_ShadingConnection
#define MAYA_ShadingConnection
#include <maya/MColor.h>
class ShadingConnection
{
public:
enum TYPE
{
CONSTANT_COLOR,
TEXTURE
};
TYPE traverseAttribute(
MString attributeName);
TYPE analyzePlug(
MPlug plug);
TYPE traverseTripleShadingSwitch(
MObject connectedObject);
TYPE type();
TYPE setConstantColor(
MColor col);
bool isDirectConnection();
private:
TYPE m_type;
bool m_directConnection;
};
#endif // MAYA_ShadingConnection