de.grogra.ray2.tracing
public class Radiosity extends RayProcessorBase
RayProcessorBase.LocalsenteredSolids, RECURSION_DEPTH, renderer, scene| Constructor and Description |
|---|
Radiosity()
Creates a new Radiosity Processor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendStatisticsImpl(java.lang.StringBuffer stats) |
void |
getColorFromRay(Line ray,
Spectrum resp,
Color4f color,
java.util.Random random)
The main method of a ray processor.
|
void |
initialize(PixelwiseRenderer renderer,
Scene scene)
With this method the processor is initialized with the scene
and other information of a
PixelwiseRenderer. |
dup, getIOR, getLightProcessor, initializeBeforeTracing, initLocals, mergeStatistics, setLightProcessor, setRecursionDepthappendStatistics, cloneequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendStatisticsprotected void appendStatisticsImpl(java.lang.StringBuffer stats)
appendStatisticsImpl in class ProcessorBasepublic void getColorFromRay(Line ray, Spectrum resp, Color4f color, java.util.Random random)
RayProcessorcolor for the specified ray.
color.w contains
the alpha value for the ray, the other components are
premultiplied with this alpha value.getColorFromRay in interface RayProcessorgetColorFromRay in class RayProcessorBaseray - input - calculate for this rayresp - responsivity of cameracolor - output - the calculated colorrandom - pseudorandom generatorpublic void initialize(PixelwiseRenderer renderer, Scene scene)
RayProcessorPixelwiseRenderer.initialize in interface RayProcessorinitialize in class RayProcessorBaserenderer - the renderer which provides the needed informationscene - the scene which is rendered