8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
bool ocull = true;
float odist = 256;
void
toggleocull()
{
ocull = !ocull;
};
COMMAND(toggleocull, ARG_NONE);
// constructs occlusion map: cast rays in all directions on the 2d plane and
// record distance. done exactly once per frame.
void
computeraytable(float vx, float vy)
{
|
<
|
|
|
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
bool ocull = true;
float odist = 256;
void
toggleocull()
{
ocull = !ocull;
}
COMMAND(toggleocull, ARG_NONE)
// constructs occlusion map: cast rays in all directions on the 2d plane and
// record distance. done exactly once per frame.
void
computeraytable(float vx, float vy)
{
|