de.grogra.ray.tracing
public class PathTracerHS extends java.lang.Object implements RayProcessor
| Constructor and Description |
|---|
PathTracerHS() |
PathTracerHS(int depth) |
| Modifier and Type | Method and Description |
|---|---|
void |
getColorFromRay(Ray ray,
Color4f color)
The main methode of a ray processor.
|
LightProcessor |
getLightProcessor() |
Ray |
getMostProbableRay(RayList rays,
int seed) |
int |
getRecursionDepth() |
boolean |
hasFixedLightProcessor() |
boolean |
isPhysicalValid() |
void |
prepareRayProcessor(RTScene scene,
IntersectionProcessor intersectionProcessor)
With this method the processor is initialized with a 3d scene
and an intersection processor it will use.
|
void |
setIntersectionProcessor(IntersectionProcessor processor) |
void |
setLightProcessor(LightProcessor model) |
void |
setPhysicalValid(boolean valid) |
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 getRecursionDepth()
getRecursionDepth in interface RayProcessorpublic boolean hasFixedLightProcessor()
hasFixedLightProcessor in interface RayProcessorpublic boolean isPhysicalValid()
public void prepareRayProcessor(RTScene scene, IntersectionProcessor intersectionProcessor)
RayProcessorprepareRayProcessor in interface RayProcessorpublic void setIntersectionProcessor(IntersectionProcessor processor)
public void setLightProcessor(LightProcessor model)
setLightProcessor in interface RayProcessorpublic void setPhysicalValid(boolean valid)
public void setRecursionDepth(int value)
setRecursionDepth in interface RayProcessor