de.grogra.ray.tracing
public class PhotonMapping extends java.lang.Object implements RayProcessor
| Constructor and Description |
|---|
PhotonMapping() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
createPhotonMap() |
void |
getColorFromRay(Ray ray,
Color4f color4)
The main methode of a ray processor.
|
LightProcessor |
getLightProcessor() |
int |
getRecursionDepth() |
boolean |
hasFixedLightProcessor() |
void |
prepareRayProcessor(RTScene scene,
IntersectionProcessor m_intersectionProcessor)
With this method the processor is initialized with a 3d scene
and an intersection processor it will use.
|
void |
setLightProcessor(LightProcessor model) |
void |
setPhotonCount(int photonCount) |
void |
setRang(int range) |
void |
setRecursionDepth(int value) |
public void clear()
public void createPhotonMap()
public void getColorFromRay(Ray ray, Color4f color4)
RayProcessorgetColorFromRay in interface RayProcessorray - input - calculate for this raycolor4 - output - the calculated colorpublic LightProcessor getLightProcessor()
getLightProcessor in interface RayProcessorpublic int getRecursionDepth()
getRecursionDepth in interface RayProcessorpublic boolean hasFixedLightProcessor()
hasFixedLightProcessor in interface RayProcessorpublic void prepareRayProcessor(RTScene scene, IntersectionProcessor m_intersectionProcessor)
RayProcessorprepareRayProcessor in interface RayProcessorpublic void setLightProcessor(LightProcessor model)
setLightProcessor in interface RayProcessorpublic void setPhotonCount(int photonCount)
public void setRang(int range)
public void setRecursionDepth(int value)
setRecursionDepth in interface RayProcessor