home *** CD-ROM | disk | FTP | other *** search
/ AP Professional Graphics CD-ROM Library / AP Professional Graphics CD-ROM Library.iso / pc / unix / appendix / gemsiii / luminair / spcinstr < prev    next >
Encoding:
Text File  |  1992-10-05  |  648 b   |  15 lines

  1. // ******************************************************************
  2. //
  3. // The following C++ code computes a sample point and its probability 
  4. // on the spherical or triangular luminaire according to the solid 
  5. // angle from the view point.  These are the center part of the direct 
  6. // lighting computation via Monte Carlo integration.
  7. //
  8. // The function hit() is assumed to exist. It returns the intersection 
  9. // point of a ray and a luminaire.
  10. //  
  11. // Use the command, CC -c *.C -lm, to compile (not link).  The code 
  12. // needs to be combined with a ray tracer to complete. 
  13. // ******************************************************************
  14.  
  15.