diff options
Diffstat (limited to 'mayaPlug/shaveShadowNode.h')
| -rw-r--r-- | mayaPlug/shaveShadowNode.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/mayaPlug/shaveShadowNode.h b/mayaPlug/shaveShadowNode.h new file mode 100644 index 0000000..6b649ed --- /dev/null +++ b/mayaPlug/shaveShadowNode.h @@ -0,0 +1,63 @@ +#ifndef _SHADENODE +#define _SHADENODE + +// Shave and a Haircut +// (c) 2019 Epic Games +// US Patent 6720962 + +#include <math.h> +#include <maya/MPxNode.h> +#include <maya/MString.h> +#include <maya/MTypeId.h> +#include <maya/MDataBlock.h> +#include <maya/MDataHandle.h> +#include <maya/MArrayDataHandle.h> +#include <maya/MFnNumericAttribute.h> +#include <maya/MFnLightDataAttribute.h> +#include <maya/MFloatVector.h> +#include <maya/MGlobal.h> +//#include "glut.h" + +#include "shaveSDK.h" + +class shaveShadowNode : public MPxNode +{ +public: + shaveShadowNode(); + virtual ~shaveShadowNode(); + + virtual MStatus compute( const MPlug&, MDataBlock& ); + virtual void postConstructor(); + +#if MAYA_API_VERSION >= 201600 + virtual SchedulingType schedulingType() const { return kUntrusted; } +#endif + + static void * creator(); + static MStatus initialize(); + static MTypeId id; + static const MString nodeTypeName; + +protected: + static MObject IntensityValue; + static MObject aPointWorldX; + static MObject aPointWorldY; + static MObject aPointWorldZ; + static MObject aPointWorld; + static MObject colorR; + static MObject colorG; + static MObject colorB; + static MObject shadColorR; + static MObject shadColorG; + static MObject shadColorB; + static MObject lightID; + static MObject aOutIntensity; + static MObject aOutColorR; + static MObject aOutColorG; + static MObject aOutColorB; + static MObject aOutColor; + static MObject color; + static MObject shadColor; +}; + +#endif |