java.lang.Object
de.grogra.ray.tracing.PathTracerHS
- All Implemented Interfaces:
RayProcessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getColorFromRay
(Ray ray, Color4f color) The main methode of a ray processor.getMostProbableRay
(RayList rays, int seed) int
boolean
boolean
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)
-
Constructor Details
-
PathTracerHS
public PathTracerHS() -
PathTracerHS
public PathTracerHS(int depth)
-
-
Method Details
-
setIntersectionProcessor
-
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
-
getMostProbableRay
-
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
-
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
-
setPhysicalValid
public void setPhysicalValid(boolean valid) -
isPhysicalValid
public boolean isPhysicalValid()
-