home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
RISC DISC 3
/
RISC_DISC_3.iso
/
resources
/
etexts
/
gems
/
gemsiii
/
luminaire
/
special_instruction.
< prev
next >
Wrap
Text File
|
1992-10-05
|
648b
|
15 lines
// ******************************************************************
//
// The following C++ code computes a sample point and its probability
// on the spherical or triangular luminaire according to the solid
// angle from the view point. These are the center part of the direct
// lighting computation via Monte Carlo integration.
//
// The function hit() is assumed to exist. It returns the intersection
// point of a ray and a luminaire.
//
// Use the command, CC -c *.C -lm, to compile (not link). The code
// needs to be combined with a ray tracer to complete.
// ******************************************************************