de.grogra.ray.tracing
public class PathTracerMT extends java.lang.Object implements RayProcessor
| Constructor and Description |
|---|
PathTracerMT() |
| Modifier and Type | Method and Description |
|---|---|
void |
getColorFromRay(Ray ray,
Color4f color)
The main methode of a ray processor.
|
LightProcessor |
getLightProcessor() |
int |
getPathCount() |
int |
getRecursionDepth() |
boolean |
hasFixedLightProcessor() |
void |
prepareRayProcessor(RTScene scene,
IntersectionProcessor processor)
With this method the processor is initialized with a 3d scene
and an intersection processor it will use.
|
void |
setLightProcessor(LightProcessor model) |
void |
setPathCount(int value) |
void |
setRecursionDepth(int value) |
public void getColorFromRay(Ray ray, Color4f color)
RayProcessorgetColorFromRay in interface RayProcessorray - input - calculate for this raycolor - output - the calculated colorpublic LightProcessor getLightProcessor()
getLightProcessor in interface RayProcessorpublic int getPathCount()
public int getRecursionDepth()
getRecursionDepth in interface RayProcessorpublic boolean hasFixedLightProcessor()
hasFixedLightProcessor in interface RayProcessorpublic void prepareRayProcessor(RTScene scene, IntersectionProcessor processor)
RayProcessorprepareRayProcessor in interface RayProcessorpublic void setLightProcessor(LightProcessor model)
setLightProcessor in interface RayProcessorpublic void setPathCount(int value)
public void setRecursionDepth(int value)
setRecursionDepth in interface RayProcessor