SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
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.
Definition at line 18 of file SLRaySamples2D.h.
|
inline |
Definition at line 21 of file SLRaySamples2D.h.
|
inline |
Definition at line 22 of file SLRaySamples2D.h.
Makes concentric 2D-samples points within a circle of certain radius. With the parameter evenlyDistributed=false will the samplepoints be denser towards the center.
Definition at line 31 of file SLRaySamples2D.cpp.
Concentric mapping of a x,y-position Code taken from Peter Shirley out of "Realistic Ray Tracing"
Definition at line 60 of file SLRaySamples2D.cpp.
Definition at line 34 of file SLRaySamples2D.h.
Definition at line 26 of file SLRaySamples2D.h.
|
inline |
Definition at line 33 of file SLRaySamples2D.h.
Resets the sample point array by the sqrt of the no. of samples.
Definition at line 16 of file SLRaySamples2D.cpp.
|
inline |
Definition at line 31 of file SLRaySamples2D.h.
|
inline |
Definition at line 32 of file SLRaySamples2D.h.
|
inline |
Definition at line 35 of file SLRaySamples2D.h.
|
private |
samplepoints for distributed tracing
Definition at line 44 of file SLRaySamples2D.h.
|
private |
No. of samples = samplesX x samplesY.
Definition at line 43 of file SLRaySamples2D.h.
|
private |
No. of samples in x direction.
Definition at line 41 of file SLRaySamples2D.h.
|
private |
No. of samples in y direction.
Definition at line 42 of file SLRaySamples2D.h.