1 |
– |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ SGI"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* Routines for mirror material supporting virtual light sources |
6 |
|
*/ |
7 |
|
|
8 |
+ |
#include "copyright.h" |
9 |
+ |
|
10 |
|
#include "ray.h" |
11 |
|
|
12 |
|
#include "otypes.h" |
25 |
|
*/ |
26 |
|
|
27 |
|
|
28 |
< |
int mir_proj(); |
28 |
> |
static int mir_proj(), mirrorproj(); |
29 |
> |
|
30 |
|
VSMATERIAL mirror_vs = {mir_proj, 1}; |
31 |
|
|
32 |
|
|
33 |
+ |
int |
34 |
|
m_mirror(m, r) /* shade mirrored ray */ |
35 |
|
register OBJREC *m; |
36 |
|
register RAY *r; |
98 |
|
} |
99 |
|
|
100 |
|
|
101 |
+ |
static int |
102 |
|
mir_proj(pm, o, s, n) /* compute a mirror's projection */ |
103 |
|
MAT4 pm; |
104 |
|
register OBJREC *o; |
127 |
|
} |
128 |
|
|
129 |
|
|
130 |
+ |
static int |
131 |
|
mirrorproj(m, nv, offs) /* get mirror projection for surface */ |
132 |
|
register MAT4 m; |
133 |
|
FVECT nv; |