java.lang.Object
de.grogra.ray.tracing.PathTracerMT
- All Implemented Interfaces:
RayProcessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetColorFromRay(Ray ray, Color4f color) The main methode of a ray processor.intintbooleanvoidprepareRayProcessor(RTScene scene, IntersectionProcessor processor) With this method the processor is initialized with a 3d scene and an intersection processor it will use.voidsetLightProcessor(LightProcessor model) voidsetPathCount(int value) voidsetRecursionDepth(int value)
-
Constructor Details
-
PathTracerMT
public PathTracerMT()
-
-
Method Details
-
hasFixedLightProcessor
public boolean hasFixedLightProcessor()- Specified by:
hasFixedLightProcessorin interfaceRayProcessor
-
setLightProcessor
- Specified by:
setLightProcessorin interfaceRayProcessor
-
getLightProcessor
- Specified by:
getLightProcessorin interfaceRayProcessor
-
setRecursionDepth
public void setRecursionDepth(int value) - Specified by:
setRecursionDepthin interfaceRayProcessor
-
getRecursionDepth
public int getRecursionDepth()- Specified by:
getRecursionDepthin interfaceRayProcessor
-
setPathCount
public void setPathCount(int value) -
getPathCount
public int getPathCount() -
prepareRayProcessor
Description copied from interface:RayProcessorWith this method the processor is initialized with a 3d scene and an intersection processor it will use.- Specified by:
prepareRayProcessorin interfaceRayProcessor- Parameters:
scene-processor-
-
getColorFromRay
Description copied from interface:RayProcessorThe 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:
getColorFromRayin interfaceRayProcessor- Parameters:
ray- input - calculate for this raycolor- output - the calculated color
-