org.sunflow.core.photonmap

Class CausticPhotonMap

Implemented Interfaces:
CausticPhotonMapInterface, PhotonStore

public final class CausticPhotonMap
extends java.lang.Object
implements CausticPhotonMapInterface

Constructor Summary

CausticPhotonMap(Options options)

Method Summary

boolean
allowDiffuseBounced()
boolean
allowReflectionBounced()
boolean
allowRefractionBounced()
void
getSamples(ShadingState state)
void
init()
int
numEmit()
void
prepare(BoundingBox sceneBounds)
void
store(ShadingState state, Vector3 dir, Color power, Color diffuse)

Constructor Details

CausticPhotonMap

public CausticPhotonMap(Options options)

Method Details

allowDiffuseBounced

public boolean allowDiffuseBounced()
Specified by:
allowDiffuseBounced in interface PhotonStore

allowReflectionBounced

public boolean allowReflectionBounced()
Specified by:
allowReflectionBounced in interface PhotonStore

allowRefractionBounced

public boolean allowRefractionBounced()
Specified by:
allowRefractionBounced in interface PhotonStore

getSamples

public void getSamples(ShadingState state)
Specified by:
getSamples in interface CausticPhotonMapInterface

init

public void init()
Specified by:
init in interface PhotonStore

numEmit

public int numEmit()
Specified by:
numEmit in interface PhotonStore

prepare

public void prepare(BoundingBox sceneBounds)
Specified by:
prepare in interface PhotonStore

store

public void store(ShadingState state,
                  Vector3 dir,
                  Color power,
                  Color diffuse)
Specified by:
store in interface PhotonStore