Package org.sunflow.core
Interface GlobalPhotonMapInterface
- All Superinterfaces:
PhotonStore
- All Known Implementing Classes:
GlobalPhotonMap
,GridPhotonMap
Represents a global photon map. This is a structure which can return a rough
approximation of the diffuse radiance at a given surface point.
-
Method Summary
Modifier and TypeMethodDescriptiongetRadiance
(Point3 p, Vector3 n) Lookup the global diffuse radiance at the specified surface point.Methods inherited from interface org.sunflow.core.PhotonStore
allowDiffuseBounced, allowReflectionBounced, allowRefractionBounced, init, numEmit, prepare, store
-
Method Details
-
getRadiance
Lookup the global diffuse radiance at the specified surface point.- Parameters:
p
- surface positionn
- surface normal- Returns:
- an approximation of global diffuse radiance at this point
-