slopeShaderNode.h
#ifndef _SLOPESHADERNODE_H_
#define _SLOPESHADERNODE_H_
#include <maya/MPxNode.h>
class slopeShaderNode : public MPxNode
{
public:
slopeShaderNode();
virtual ~slopeShaderNode();
virtual MStatus compute( const MPlug&, MDataBlock& );
virtual void postConstructor();
static void * creator();
static MStatus initialize();
static MTypeId id;
protected:
static MObject aAngle;
static MObject aColor1;
static MObject aColor2;
static MObject aTriangleNormalCamera;
static MObject aOutColor;
static MObject aMatrixEyeToWorld;
static MObject aDirtyShaderAttr;
};
#endif //_SLOPESHADERNODE_H_