java.lang.Object
de.grogra.ray.light.DefaultLightProcessor
- All Implemented Interfaces:
LightProcessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RTLight[]protected ShadowProcessorprotected final Vector3d -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetLightRays(Ray view, IntersectionDescription desc, RayList rays) Adds lights/shadow rays that illuminalte the specified intersection point.voidprepareLightProcessor(RTScene scene, IntersectionProcessor processor)
-
Field Details
-
m_lights
-
m_toLight
-
m_shadowProcessor
-
-
Constructor Details
-
DefaultLightProcessor
public DefaultLightProcessor()
-
-
Method Details
-
prepareLightProcessor
- Specified by:
prepareLightProcessorin interfaceLightProcessor
-
getLightRays
Description copied from interface:LightProcessorAdds lights/shadow rays that illuminalte the specified intersection point.- Specified by:
getLightRaysin interfaceLightProcessor- Parameters:
view-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
-