de.grogra.ray.light
public class DefaultLightProcessor extends java.lang.Object implements LightProcessor
| Modifier and Type | Field and Description |
|---|---|
protected RTLight[] |
m_lights |
protected ShadowProcessor |
m_shadowProcessor |
protected Vector3d |
m_toLight |
| Constructor and Description |
|---|
DefaultLightProcessor() |
| Modifier and Type | Method and Description |
|---|---|
int |
getLightRays(Ray view,
IntersectionDescription desc,
RayList rays)
Adds lights/shadow rays that illuminalte the specified intersection
point.
|
void |
prepareLightProcessor(RTScene scene,
IntersectionProcessor processor) |
protected RTLight[] m_lights
protected ShadowProcessor m_shadowProcessor
protected final Vector3d m_toLight
public int getLightRays(Ray view, IntersectionDescription desc, RayList rays)
LightProcessorgetLightRays in interface LightProcessordesc - description object that specifies the intersection pointrays - all determined rays are added to this objectpublic void prepareLightProcessor(RTScene scene, IntersectionProcessor processor)
prepareLightProcessor in interface LightProcessor