diff options
| author | Ben Marsh <[email protected]> | 2019-10-22 09:07:59 -0400 |
|---|---|---|
| committer | Ben Marsh <[email protected]> | 2019-10-22 09:07:59 -0400 |
| commit | bd0027e737c6512397f841c22786274ed74b927f (patch) | |
| tree | f7ffbdb8f3741bb7f24635616cc189cba5cb865c /mayaPlug/shaveVolumeShader.h | |
| download | shave-and-a-haircut-bd0027e737c6512397f841c22786274ed74b927f.tar.xz shave-and-a-haircut-bd0027e737c6512397f841c22786274ed74b927f.zip | |
Adding Shave-and-a-Haircut 9.6
Diffstat (limited to 'mayaPlug/shaveVolumeShader.h')
| -rw-r--r-- | mayaPlug/shaveVolumeShader.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/mayaPlug/shaveVolumeShader.h b/mayaPlug/shaveVolumeShader.h new file mode 100644 index 0000000..6fb1bc5 --- /dev/null +++ b/mayaPlug/shaveVolumeShader.h @@ -0,0 +1,68 @@ +#ifndef shaveVolumeShader_h +#define shaveVolumeShader_h +// Shave and a Haircut +// (c) 2019 Epic Games +// US Patent 6720962 + +#include <maya/MPxNode.h> + + +class shaveVolumeShader : public MPxNode +{ + //****************************************************** + // + // Creation & Initialization Methods + // + //****************************************************** +public: + shaveVolumeShader(); + virtual ~shaveVolumeShader(); + static void * creator(); + static MStatus initialize(); + + + //****************************************************** + // + // Overloaded MPxNode Methods + // + //****************************************************** +public: + virtual MStatus compute( const MPlug&, MDataBlock& ); + virtual void postConstructor(); +#if MAYA_API_VERSION >= 201600 + virtual SchedulingType schedulingType() const { return kUntrusted; } +#endif + + + //****************************************************** + // + // Member Variables + // + //****************************************************** +public: + static MTypeId id; + static const MString nodeTypeName; + + + //****************************************************** + // + // Attributes + // + //****************************************************** +public: + static MObject aFarPointCamera; + static MObject aFarPointWorld; + static MObject aOutColor; + static MObject aOutMatteOpacity; + static MObject aOutTransparency; + static MObject aPixelCenter; + static MObject aPixelCenterX; + static MObject aPixelCenterY; + static MObject aPointCamera; + static MObject aPointWorld; + static MObject aRayDepth; + static MObject aRayDirection; + static MObject aRayOrigin; +}; + +#endif |