--- ray/src/rt/m_mirror.c 1998/08/10 18:37:05 2.7 +++ ray/src/rt/m_mirror.c 2003/02/25 02:47:22 2.9 @@ -1,13 +1,12 @@ -/* Copyright (c) 1998 Silicon Graphics, Inc. */ - #ifndef lint -static char SCCSid[] = "$SunId$ SGI"; +static const char RCSid[] = "$Id: m_mirror.c,v 2.9 2003/02/25 02:47:22 greg Exp $"; #endif - /* * Routines for mirror material supporting virtual light sources */ +#include "copyright.h" + #include "ray.h" #include "otypes.h" @@ -26,10 +25,12 @@ static char SCCSid[] = "$SunId$ SGI"; */ -int mir_proj(); +static int mir_proj(), mirrorproj(); + VSMATERIAL mirror_vs = {mir_proj, 1}; +int m_mirror(m, r) /* shade mirrored ray */ register OBJREC *m; register RAY *r; @@ -97,6 +98,7 @@ register RAY *r; } +static int mir_proj(pm, o, s, n) /* compute a mirror's projection */ MAT4 pm; register OBJREC *o; @@ -125,6 +127,7 @@ int n; } +static int mirrorproj(m, nv, offs) /* get mirror projection for surface */ register MAT4 m; FVECT nv;