home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume18 / mtvraytrace / part01 / data.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-26  |  1.4 KB  |  59 lines

  1. /***********************************************************************
  2.  * $Author: markv $
  3.  * $Revision: 1.3 $
  4.  * $Date: 88/09/17 01:23:10 $
  5.  * $Log:    data.c,v $
  6.  * Revision 1.3  88/09/17  01:23:10  markv
  7.  * Added definitions for antialias related variables
  8.  * 
  9.  * Revision 1.2  88/09/12  12:52:03  markv
  10.  * Added counter for shadow cache hits.  Made the max level of 
  11.  * recursion equal to the define MAXLEVEL in defs.h
  12.  * 
  13.  * Revision 1.1  88/09/11  11:02:13  markv
  14.  * Initial revision
  15.  * 
  16.  ***********************************************************************/
  17. #include "defs.h"
  18.  
  19. int         yylinecount ;
  20. Viewpoint     Eye ;
  21. int         Xresolution = 512 ;
  22. int         Yresolution = 512 ;
  23. Light        Lights[MAXLIGHTS] ;
  24. int        nLights = 0 ;
  25. Vec        BackgroundColor ;
  26. Surface        * CurrentSurface ;
  27. Object        * Prims[MAXPRIMS] ;
  28. int        nPrims = 0 ;
  29. Flt        rayeps = 1e-6 ;
  30. char *        Progname ;
  31. Object        * Root ;
  32.  
  33. Flt        minweight = 0.01 ;
  34. int        maxlevel = MAXLEVEL ;
  35. int        nRays = 0 ;
  36. int        nShadows = 0 ;
  37. int        nReflected = 0 ;
  38. int        nRefracted = 0 ;
  39. int        maxQueueSize = 0 ;
  40. int        totalQueues = 0 ;
  41. int        totalQueueResets = 0 ;
  42. int        tickflag = 0 ;
  43. int        filtflag = 0 ;
  44. int        jitterflag = 0 ;
  45. int        resolutionflag = 0 ;
  46. int        maxsamples = 0 ;
  47. int        nChecked = 0 ;
  48. int        nEnqueued = 0 ;
  49. int        nShadowCacheHits = 0 ;
  50.  
  51. Vec    Slab[] = {
  52.     {1.0, 0.0, 0.0},
  53.     {0.0, 1.0, 0.0},
  54.     {0.0, 0.0, 1.0},
  55.     {1.0, 1.0, 0.0},
  56.     {1.0, 0.0, 1.0},
  57.     {0.0, 1.0, 1.0}
  58. } ;
  59.