#include <RayTracer.h>
|
shared_ptr< Image > | render (const Settings &settings, const Array< shared_ptr< Surface > > &surfaceArray, const shared_ptr< LightingEnvironment > &lighting, const shared_ptr< Camera > &camera, Stats &stats) |
| Render the specified image. More...
|
|
shared_ptr< Surfel > RayTracer::castRay |
( |
const Ray & |
ray, |
|
|
float |
maxDistance = finf() , |
|
|
bool |
anyHit = false |
|
) |
| const |
|
protected |
- Parameters
-
ray | in world space |
maxDistance | Don’t trace farther than this |
anyHit | If true, return any surface hit, even if it is not the first |
- Returns
- The surfel hit, or NULL if none was hit
shared_ptr< RayTracer > RayTracer::create |
( |
| ) |
|
|
static |
Radiance3 RayTracer::L_scatteredDirect |
( |
const shared_ptr< Surfel > & |
surfel, |
|
|
const Vector3 & |
wo, |
|
|
Random & |
rnd |
|
) |
| const |
|
protected |
shared_ptr< Image > RayTracer::render |
( |
const Settings & |
settings, |
|
|
const Array< shared_ptr< Surface > > & |
surfaceArray, |
|
|
const shared_ptr< LightingEnvironment > & |
lighting, |
|
|
const shared_ptr< Camera > & |
camera, |
|
|
Stats & |
stats |
|
) |
| |
Render the specified image.
void RayTracer::traceAllPixels |
( |
int |
numThreads | ) |
|
|
protected |
Called from render().
Writes to m_image.
void RayTracer::traceOnePixel |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
threadID |
|
) |
| |
|
protected |
shared_ptr<Camera> RayTracer::m_camera |
|
protected |
shared_ptr<Image> RayTracer::m_image |
|
protected |
shared_ptr<LightingEnvironment> RayTracer::m_lighting |
|
protected |
Array< shared_ptr<Random> > RayTracer::m_rnd |
|
protected |
Array of random number generators so that each threadID may have its own without using locks.
TriTree RayTracer::m_triTree |
|
protected |
The documentation for this class was generated from the following files: