home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 3 / RISC_DISC_3.iso / resources / etexts / gems / gemsiii / luminaire / special_instruction. < prev    next >
Text File  |  1992-10-05  |  648b  |  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.