java.lang.Object
de.grogra.ray.tracing.DefaultRayTracer
- All Implemented Interfaces:
RayProcessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getColorFromRay
(Ray ray, Color4f color) The main methode of a ray processor.int
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
setLightProcessor
(LightProcessor lightProcessor) void
setRecursionDepth
(int value)
-
Constructor Details
-
DefaultRayTracer
public DefaultRayTracer()
-
-
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
-
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
-