![]() |
SLProject 4.0.000
|
Class for 2D disk sample points. More...
#include <SLRaySamples2D.h>
Public Member Functions | |
| SLRaySamples2D () | |
| ~SLRaySamples2D () | |
| void | samples (SLuint x, SLuint y, SLbool evenlyDistributed=true) |
| Resets the sample point array by the sqrt of the no. of samples. More... | |
| void | point (SLuint x, SLuint y, SLVec2f point) |
| SLuint | samplesX () |
| SLuint | samplesY () |
| SLuint | samples () |
| SLVec2f | point (SLuint x, SLuint y) |
| SLuint | sizeInBytes () |
Private Member Functions | |
| void | distribConcentric (SLbool evenlyDistributed) |
| SLVec2f | mapSquareToDisc (SLfloat x, SLfloat y) |
Private Attributes | |
| SLuint | _samplesX |
| No. of samples in x direction. More... | |
| SLuint | _samplesY |
| No. of samples in y direction. More... | |
| SLuint | _samples |
| No. of samples = samplesX x samplesY. More... | |
| SLVVec2f | _points |
| samplepoints for distributed tracing More... | |
Class for 2D disk sample points.
|
inline |
|
inline |
|
private |
Makes concentric 2D-samples points within a circle of certain radius. With the parameter evenlyDistributed=false will the samplepoints be denser towards the center.
Concentric mapping of a x,y-position Code taken from Peter Shirley out of "Realistic Ray Tracing"
|
inline |
Resets the sample point array by the sqrt of the no. of samples.
|
inline |
|
inline |
|
inline |
|
private |
samplepoints for distributed tracing
|
private |
No. of samples = samplesX x samplesY.
|
private |
No. of samples in x direction.
|
private |
No. of samples in y direction.