aboutsummaryrefslogtreecommitdiff
path: root/vrayPlug/plugin/shaveSDKCALLBACKS.c
blob: c46b55dd2604ef3328539a49565840ddf4e0fe46 (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
//********************************************************
//
//		Sample callback functions
//
//********************************************************

#include "shaveSDKTYPES.h"
#include "shaveSDKCALLBACKS2.h"


void SHAVE2apply_inst_color(WFTYPE *instance_geom, int hairID, int slgID, unsigned long shaveINSTID)
{
}

VERT SHAVE2displace_root(VERT *root,CURVEINFO *ci,int ID)
{
	VERT ret;
	ret.x=0;
	ret.y=0;
	ret.z=0;
	return ret;
}


int SHAVE2progress(int actual, int estimated_total)
{
	int killit=0;
	return killit;
}


void SHAVE2coord_convertTOSHAVE(VERT *in)
{
}


void SHAVE2coord_convertFROMSHAVE(VERT *in)
{
}


float SHAVE2apply_texture(CURVEINFO *ci,VERT rest_root_worldpos,unsigned long shaveINSTID, int parm, float inbound_value)
{
	ci->u=20.0;
	ci->v=2.0;

	return inbound_value;
}


void MAYAexternal_forces(VERT *lastpos, VERT *velocity,int y)
{
}


VERT SHAVE2apply_illumination(int LIGHTID, VERT wpos,VERT vector, VERT color)
{
	return color;
}

extern float SHAVE2apply_falloff(int lightNUM, VERT pos,float cone)
{
	return(cone);
}


void SHAVE2apply_illuminationWF(int LIGHTID, WFTYPE *samples)
{
}


VERT SHAVE2apply_atmosphere(VERT wpos,VERT inbound_color )
{
	return(inbound_color);
}


float SHAVE2apply_VMAP(long SHAVE2INSTID,int VERTID,int chan, float inbound_value)
{
	return(inbound_value);	
}


void MAYA2external_forces(VERT *lastpos, VERT *velocity,int y)
{
}

void MAYA2cache_forces(int clearCache)
{}

void MAYA2apply_cached_forces(int guideNum, int vertNum, VERT* velocity)
{}

void SHAVEdraw_tile_callback2(VERT *a, VERT *b)
{
}