public interface PhotonStore
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowDiffuseBounced()
Allow photons reflected diffusely?
|
boolean |
allowReflectionBounced()
Allow specularly reflected photons?
|
boolean |
allowRefractionBounced()
Allow refracted photons?
|
void |
init()
Initialize the map after all photons have been stored.
|
int |
numEmit()
Number of photons to emit from this surface.
|
void |
prepare(Options options,
BoundingBox sceneBounds)
Initialize this object for the specified scene size.
|
void |
store(ShadingState state,
Vector3 dir,
Color power,
Color diffuse)
Store the specified photon.
|
int numEmit()
void prepare(Options options, BoundingBox sceneBounds)
sceneBounds - scene bounding boxvoid store(ShadingState state, Vector3 dir, Color power, Color diffuse)
state - shading statedir - photon directionpower - photon powerdiffuse - diffuse color at the hit pointvoid init()
boolean allowDiffuseBounced()
true if diffuse bounces should be tracedboolean allowReflectionBounced()
true if specular reflection bounces should be
tracedboolean allowRefractionBounced()
true if refracted bounces should be traced