home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume21 / rayshade / part01 / src / defaults.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-03-21  |  1.6 KB  |  50 lines

  1. /*
  2.  * defaults.h
  3.  *
  4.  * Copyright (C) 1989, Craig E. Kolb
  5.  *
  6.  * This software may be freely copied, modified, and redistributed,
  7.  * provided that this copyright notice is preserved on all copies.
  8.  *
  9.  * There is no warranty or other guarantee of fitness for this software,
  10.  * it is provided solely .  Bug reports or fixes may be sent
  11.  * to the author, who may or may not act on them as he desires.
  12.  *
  13.  * You may not include this software in a program or other software product
  14.  * without supplying the source, or without informing the end-user that the
  15.  * source is available for no extra charge.
  16.  *
  17.  * If you modify this software, you should include a notice giving the
  18.  * name of the person performing the modification, the date of modification,
  19.  * and the reason for such modification.
  20.  *
  21.  * $Id: defaults.h,v 3.0 89/10/27 02:05:49 craig Exp $
  22.  *
  23.  * $Log:    defaults.h,v $
  24.  * Revision 3.0  89/10/27  02:05:49  craig
  25.  * Baseline for first official release.
  26.  * 
  27.  */
  28.  
  29. #define DEFLIGHTSAMPLES    4    /* sqrt of number of shadow rays per pixel */
  30.  
  31. #define XRESOLUTION    512        /* Default screen size (pixels) */
  32. #define YRESOLUTION    512
  33. #define DEFCUTOFF    0.001        /* Default tree cutoff value */
  34. #define MAXLEVEL    3        /* Maximum ray tree depth. */
  35. #define PIXEL_DIV    1        /* Maximum pixel subdivision factor */
  36. #define HFOV        45        /* Field-of-view */
  37. #define EYEX        0        /* Eye position */
  38. #define EYEY        20
  39. #define EYEZ        0
  40. #define LOOKX        0        /* Look point */
  41. #define LOOKY        0
  42. #define LOOKZ        0
  43. #define UPX        0        /* Up vector */
  44. #define UPY        0
  45. #define UPZ        1
  46.  
  47. #define DEFREDCONT    0.25        /* Default contrast threshold values. */
  48. #define DEFGREENCONT    0.2
  49. #define DEFBLUECONT    0.4
  50.