--- ray/src/rt/initotypes.c 1991/06/19 16:38:10 1.5 +++ ray/src/rt/initotypes.c 1992/01/04 19:54:53 2.2 @@ -1,4 +1,4 @@ -/* Copyright (c) 1990 Regents of the University of California */ +/* Copyright (c) 1992 Regents of the University of California */ #ifndef lint static char SCCSid[] = "$SunId$ LBL"; @@ -20,10 +20,12 @@ extern int o_cone(); extern int o_instance(); extern int m_light(); extern int m_normal(); +extern int m_aniso(); extern int m_dielectric(); extern int m_glass(); extern int m_clip(); extern int m_mirror(); +extern int m_direct(); extern int m_brdf(); extern int t_func(), t_data(); extern int p_cfunc(), p_bfunc(); @@ -53,6 +55,10 @@ initotypes() /* initialize ofun array */ ofun[MAT_METAL].funp = ofun[MAT_TRANS].funp = m_normal; ofun[MAT_TRANS].flags |= T_IRR_IGN; + ofun[MAT_PLASTIC2].funp = + ofun[MAT_METAL2].funp = + ofun[MAT_TRANS2].funp = m_aniso; + ofun[MAT_TRANS2].flags |= T_IRR_IGN; ofun[MAT_DIELECTRIC].funp = ofun[MAT_INTERFACE].funp = m_dielectric; ofun[MAT_DIELECTRIC].flags |= T_IRR_IGN; @@ -60,6 +66,8 @@ initotypes() /* initialize ofun array */ ofun[MAT_GLASS].funp = m_glass; ofun[MAT_GLASS].flags |= T_IRR_IGN; ofun[MAT_MIRROR].funp = m_mirror; + ofun[MAT_DIRECT1].funp = + ofun[MAT_DIRECT2].funp = m_direct; ofun[MAT_CLIP].funp = m_clip; ofun[MAT_PFUNC].funp = ofun[MAT_MFUNC].funp =