-
Notifications
You must be signed in to change notification settings - Fork 0
/
states.fxh
65 lines (54 loc) · 893 Bytes
/
states.fxh
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
/*
STATES
*/
DepthStencilState dstate_Enable
{
DepthEnable = TRUE;
DepthWriteMask = ALL;
DepthFunc = GREATER_EQUAL;
};
DepthStencilState dstate_Disable
{
DepthEnable = TRUE;
DepthWriteMask = ZERO;
DepthFunc = GREATER_EQUAL;
};
BlendState bstate_NoBlend
{
BlendEnable[0] = FALSE;
};
BlendState bstate_Masked
{
BlendEnable[0] = FALSE;
#if(ALPHA_TO_COVERAGE_ENABLED)
AlphaToCoverageEnable = TRUE;
#endif
};
BlendState bstate_Modulate
{
BlendEnable[0] = TRUE;
SrcBlend = DEST_COLOR;
DestBlend = SRC_COLOR;
BlendOp = ADD ;
};
BlendState bstate_Translucent
{
BlendEnable[0] = TRUE;
SrcBlend = ONE;
DestBlend =INV_SRC_COLOR ;
BlendOp = ADD;
};
BlendState bstate_Alpha
{
BlendEnable[0] = TRUE;
SrcBlend = SRC_ALPHA;
DestBlend = INV_SRC_ALPHA;
BlendOp = ADD;
};
BlendState bstate_Invis
{
BlendEnable[0] = TRUE;
SrcBlend = ZERO;
DestBlend = ONE;
BlendOp = ADD;
};