|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sunflow.core.photonmap.GlobalPhotonMap
public final class GlobalPhotonMap
Constructor Summary | |
---|---|
GlobalPhotonMap()
|
Method Summary | |
---|---|
boolean |
allowDiffuseBounced()
Allow photons reflected diffusely? |
boolean |
allowReflectionBounced()
Allow specularly reflected photons? |
boolean |
allowRefractionBounced()
Allow refracted photons? |
Color |
getRadiance(Point3 p,
Vector3 n)
Lookup the global diffuse radiance at the specified surface point. |
void |
init()
Initialize the map after all photons have been stored. |
int |
numEmit()
Number of photons to emit from this surface. |
void |
precomputeRadiance()
|
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 GlobalPhotonMap()
Method Detail |
---|
public void prepare(Options options, BoundingBox sceneBounds)
PhotonStore
prepare
in interface PhotonStore
sceneBounds
- scene bounding boxpublic void store(ShadingState state, Vector3 dir, Color power, Color diffuse)
PhotonStore
store
in interface PhotonStore
state
- shading statedir
- photon directionpower
- photon powerdiffuse
- diffuse color at the hit pointpublic void init()
PhotonStore
init
in interface PhotonStore
public void precomputeRadiance()
public Color getRadiance(Point3 p, Vector3 n)
GlobalPhotonMapInterface
getRadiance
in interface GlobalPhotonMapInterface
p
- surface positionn
- surface normal
public boolean allowDiffuseBounced()
PhotonStore
allowDiffuseBounced
in interface PhotonStore
true
if diffuse bounces should be tracedpublic boolean allowReflectionBounced()
PhotonStore
allowReflectionBounced
in interface PhotonStore
true
if specular reflection bounces should be
tracedpublic boolean allowRefractionBounced()
PhotonStore
allowRefractionBounced
in interface PhotonStore
true
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 |