java.lang.Object
de.grogra.ray.tracing.DefaultRayTracer
- All Implemented Interfaces:
RayProcessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetColorFromRay(Ray ray, Color4f color) The main methode of a ray processor.intbooleanvoidprepareRayProcessor(RTScene scene, IntersectionProcessor intersectionProcessor) With this method the processor is initialized with a 3d scene and an intersection processor it will use.voidsetLightProcessor(LightProcessor lightProcessor) voidsetRecursionDepth(int value)
-
Constructor Details
-
DefaultRayTracer
public DefaultRayTracer()
-
-
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
-
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-intersectionProcessor-
-
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
-