blob: 6b649ed1bc0b142ae4fec6de7a1f44ba74801261 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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
|