ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/initotypes.c
(Generate patch)

Comparing ray/src/rt/initotypes.c (file contents):
Revision 2.10 by greg, Tue Mar 11 19:29:05 2003 UTC vs.
Revision 2.11 by greg, Wed Dec 31 01:50:02 2003 UTC

# Line 56 | Line 56 | initotypes()                   /* initialize ofun array */
56          ofun[MAT_ILLUM].funp =
57          ofun[MAT_GLOW].funp =
58          ofun[MAT_SPOT].funp = m_light;
59 +        ofun[MAT_LIGHT].flags |= T_OPAQUE;
60 +        ofun[MAT_SPOT].flags |= T_OPAQUE;
61          ofun[MAT_PLASTIC].funp =
62          ofun[MAT_METAL].funp =
63          ofun[MAT_TRANS].funp = m_normal;
64 +        ofun[MAT_PLASTIC].flags |= T_OPAQUE;
65 +        ofun[MAT_METAL].flags |= T_OPAQUE;
66          ofun[MAT_TRANS].flags |= T_IRR_IGN;
67          ofun[MAT_PLASTIC2].funp =
68          ofun[MAT_METAL2].funp =
69          ofun[MAT_TRANS2].funp = m_aniso;
70 +        ofun[MAT_PLASTIC2].flags |= T_OPAQUE;
71 +        ofun[MAT_METAL2].flags |= T_OPAQUE;
72          ofun[MAT_TRANS2].flags |= T_IRR_IGN;
73          ofun[MAT_DIELECTRIC].funp =
74          ofun[MAT_INTERFACE].funp = m_dielectric;
# Line 83 | Line 89 | initotypes()                   /* initialize ofun array */
89          ofun[MAT_MDATA].funp =
90          ofun[MAT_TFUNC].funp =
91          ofun[MAT_TDATA].funp = m_brdf2;
92 +        ofun[MAT_PFUNC].flags |= T_OPAQUE;
93 +        ofun[MAT_MFUNC].flags |= T_OPAQUE;
94 +        ofun[MAT_PDATA].flags |= T_OPAQUE;
95 +        ofun[MAT_MDATA].flags |= T_OPAQUE;
96          ofun[TEX_FUNC].funp = t_func;
97          ofun[TEX_DATA].funp = t_data;
98          ofun[PAT_CFUNC].funp = p_cfunc;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines