Module gpuFlux

Class LightDistribution

java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.gpuflux.imp3d.objects.LightDistribution
All Implemented Interfaces:
LightDistributionIF, Manageable, Shareable
Direct Known Subclasses:
LightDistributionResource

public class LightDistribution extends ShareableBase implements LightDistributionIF
Author:
Dietger van Antwerpen This object holds a discretized 2D light distribution over unit hemisphere It is used for computing the cumulative probability distribution for importance sampling The object uses the following mapping from 2D (u,v) coordinates in the discetized unit square [0,1]^2 to spherical coordinates (theta,phi) theta = u * PI phi = v * 2 * PI - PI