blob: 102f2f8ea619fd5c1c53873876046eefafe0e0fe (
plain)
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
|
#ifndef FUN
#define FUN
int _Mirror;
void applyFun(inout float4 vertex)
{
bool inMirror = IsInMirror();
UNITY_BRANCH
if (_Mirror == 0)
{
return;
}
if(_Mirror == 1 && inMirror)
{
return;
}
if(_Mirror == 1 && !inMirror)
{
vertex = -1;
return;
}
if(_Mirror == 2 && inMirror)
{
vertex = -1;
return;
}
if(_Mirror == 2 && !inMirror)
{
return;
}
}
void applyFunFrag()
{
bool inMirror = IsInMirror();
UNITY_BRANCH
if(_Mirror == 0)
{
return;
}
if(_Mirror == 1 && inMirror)
{
return;
}
if(_Mirror == 1 && !inMirror)
{
clip(-1);
return;
}
if(_Mirror == 2 && inMirror)
{
clip(-1);
return;
}
if(_Mirror == 2 && !inMirror)
{
return;
}
}
#endif
|