java.lang.Object
de.grogra.ray.light.DefaultLightProcessor
- All Implemented Interfaces:
LightProcessor
-
Field Summary
Modifier and TypeFieldDescriptionprotected RTLight[]
protected ShadowProcessor
protected final Vector3d
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getLightRays
(Ray view, IntersectionDescription desc, RayList rays) Adds lights/shadow rays that illuminalte the specified intersection point.void
prepareLightProcessor
(RTScene scene, IntersectionProcessor processor)
-
Field Details
-
m_lights
-
m_toLight
-
m_shadowProcessor
-
-
Constructor Details
-
DefaultLightProcessor
public DefaultLightProcessor()
-
-
Method Details
-
prepareLightProcessor
- Specified by:
prepareLightProcessor
in interfaceLightProcessor
-
getLightRays
Description copied from interface:LightProcessor
Adds lights/shadow rays that illuminalte the specified intersection point.- Specified by:
getLightRays
in interfaceLightProcessor
desc
- description object that specifies the intersection pointrays
- all determined rays are added to this object- Returns:
- number of rays that are added to the rays object
-