- All Known Implementing Classes:
BidirectionalPathTracer
,DefaultRayTracer
,PathTracerHS
,PathTracerMT
,PhotonMapping
public interface RayProcessor
An implementation of this interface encapsulates the raytracing algorithm.
This class uses an IntersectionProcessor for determining intersection
information about a single ray in the scene. Therefore it must not know the
scene at all. It only interpretes the intersection information and sends out
and traces new (reflected,fractured,..) rays.
- Author:
- Micha
-
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)
-
Method Details
-
hasFixedLightProcessor
boolean hasFixedLightProcessor() -
setLightProcessor
-
getLightProcessor
LightProcessor getLightProcessor() -
setRecursionDepth
void setRecursionDepth(int value) -
getRecursionDepth
int getRecursionDepth() -
prepareRayProcessor
With this method the processor is initialized with a 3d scene and an intersection processor it will use.- Parameters:
scene
-intersectionProcessor
-
-
getColorFromRay
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.- Parameters:
ray
- input - calculate for this raycolor
- output - the calculated color
-