|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sunflow.core.photonmap.CausticPhotonMap
public final class CausticPhotonMap
| Constructor Summary | |
|---|---|
CausticPhotonMap()
|
|
| Method Summary | |
|---|---|
boolean |
allowDiffuseBounced()
Allow photons reflected diffusely? |
boolean |
allowReflectionBounced()
Allow specularly reflected photons? |
boolean |
allowRefractionBounced()
Allow refracted photons? |
void |
getSamples(ShadingState state)
Retrieve caustic photons at the specified shading location and add them as diffuse light samples. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CausticPhotonMap()
| Method Detail |
|---|
public void prepare(Options options,
BoundingBox sceneBounds)
PhotonStore
prepare in interface PhotonStoresceneBounds - scene bounding box
public void store(ShadingState state,
Vector3 dir,
Color power,
Color diffuse)
PhotonStore
store in interface PhotonStorestate - shading statedir - photon directionpower - photon powerdiffuse - diffuse color at the hit pointpublic void init()
PhotonStore
init in interface PhotonStorepublic void getSamples(ShadingState state)
CausticPhotonMapInterface
getSamples in interface CausticPhotonMapInterfacepublic boolean allowDiffuseBounced()
PhotonStore
allowDiffuseBounced in interface PhotonStoretrue if diffuse bounces should be tracedpublic boolean allowReflectionBounced()
PhotonStore
allowReflectionBounced in interface PhotonStoretrue if specular reflection bounces should be
tracedpublic boolean allowRefractionBounced()
PhotonStore
allowRefractionBounced in interface PhotonStoretrue if refracted bounces should be tracedpublic int numEmit()
PhotonStore
numEmit in interface PhotonStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||