threeD.raytracer.lighting
Interface SurfaceLight
- All Superinterfaces:
- Light
- All Known Implementing Classes:
- RectangularLight, SphericalLight
- public interface SurfaceLight
- extends Light
A SurfaceLight implementation represents a light that can be represented
by some (possible infinite) set of other Light objects. A correct implementation
should be able to return any number of samples (Light objects) that are well
distributed and representitive of the surface. Factoring in number of samples
to create an intensity value for each sample will be handled by the ray tracing engine.
getSamples
public Light[] getSamples(int total)
- Parameters:
total - Total number of samples to return.
- Returns:
- An array containing samples for this SurfaceLight instance.
getSamples
public Light[] getSamples()
- Returns:
- An array containing samples for this SurfaceLight instance.
Copyright 2003-05 Mike Murray