|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PhotonStore
Describes an object which can store photons.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |