java.lang.Object
de.grogra.ray.tracing.PathTracerMT
- All Implemented Interfaces:
RayProcessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getColorFromRay
(Ray ray, Color4f color) The main methode of a ray processor.int
int
boolean
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)
-
Constructor Details
-
PathTracerMT
public PathTracerMT()
-
-
Method Details
-
hasFixedLightProcessor
public boolean hasFixedLightProcessor()- Specified by:
hasFixedLightProcessor
in interfaceRayProcessor
-
setLightProcessor
- Specified by:
setLightProcessor
in interfaceRayProcessor
-
getLightProcessor
- Specified by:
getLightProcessor
in interfaceRayProcessor
-
setRecursionDepth
public void setRecursionDepth(int value) - Specified by:
setRecursionDepth
in interfaceRayProcessor
-
getRecursionDepth
public int getRecursionDepth()- Specified by:
getRecursionDepth
in interfaceRayProcessor
-
setPathCount
public void setPathCount(int value) -
getPathCount
public int getPathCount() -
prepareRayProcessor
Description copied from interface:RayProcessor
With this method the processor is initialized with a 3d scene and an intersection processor it will use.- Specified by:
prepareRayProcessor
in interfaceRayProcessor
-
getColorFromRay
Description copied from interface:RayProcessor
The main methode of a ray processor. This methode has to calculate a color (or luminance of the red, gren and blue ) for each ray.- Specified by:
getColorFromRay
in interfaceRayProcessor
- Parameters:
ray
- input - calculate for this raycolor
- output - the calculated color
-