The algorithm implemented here allows the caller to tune number of rays thrown at each iteration, as well as the maximum depth. It implements Russian roulette to reduce the number of recursive calls.
Pcg | Random number generator |
NumbOfRays | Number of rays to be fired at each iteration |
MaxDepth | Maximum number of reflections for any ray |
RussianRouletteLimit | Minimum number of reflections for the Russian Roulette algorith to start |
More...
|
PCG | Pcg |
|
int | NumbOfRays |
|
int | MaxDepth |
|
int | RussianRouletteLimit |
|
World | World |
|
Color | BackgroundColor |
|
|
| Renderer (World world, Color backgroundColor=default) |
|
The algorithm implemented here allows the caller to tune number of rays thrown at each iteration, as well as the maximum depth. It implements Russian roulette to reduce the number of recursive calls.
Pcg | Random number generator |
NumbOfRays | Number of rays to be fired at each iteration |
MaxDepth | Maximum number of reflections for any ray |
RussianRouletteLimit | Minimum number of reflections for the Russian Roulette algorith to start |
◆ Call()
override Color PGENLib.PathTracer.Call |
( |
Ray |
ray | ) |
|
|
virtual |
The documentation for this class was generated from the following file:
- /Users/fra/Documenti/Università/Magistrale/SNIF/PhotoGENius/PGENLib/Renderer.cs