de.grogra.ray.tracing
public interface RayProcessor
| Modifier and Type | Method and Description |
|---|---|
void |
getColorFromRay(Ray ray,
Color4f color)
The main methode of a ray processor.
|
LightProcessor |
getLightProcessor() |
int |
getRecursionDepth() |
boolean |
hasFixedLightProcessor() |
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) |
void getColorFromRay(Ray ray, Color4f color)
ray - input - calculate for this raycolor - output - the calculated colorLightProcessor getLightProcessor()
int getRecursionDepth()
boolean hasFixedLightProcessor()
void prepareRayProcessor(RTScene scene, IntersectionProcessor intersectionProcessor)
scene - intersectionProcessor - void setLightProcessor(LightProcessor lightProcessor)
void setRecursionDepth(int value)