10 #ifndef SLPATHTRACER_H 
   11 #define SLPATHTRACER_H 
typedef void(SL_STDCALL *cbOnImGuiBuild)(SLScene *s
Callback function typedef for ImGui build function.
 
Classic Monte Carlo Pathtracing algorithm for real global illumination.
 
SLbool _calcIndirect
flag to calculate indirect illumination
 
SLCol4f shade(SLRay *ray, SLCol4f *mat)
 
SLbool render(SLSceneView *sv)
 
void calcDirect(SLbool di)
 
SLbool calcIndirect() const
 
SLbool _calcDirect
flag to calculate direct illumination
 
void renderSlices(bool isMainThread, SLint currentSample, SLuint threadNum)
 
void calcIndirect(SLbool ii)
 
void saveImage()
Saves the current PT image as PNG image.
 
SLbool calcDirect() const
 
function< void(bool, int, SLuint)> renderSlicesPTAsync
 
SLCol4f trace(SLRay *ray, SLbool em)
 
Ray class with ray and intersection properties.
 
SLRaytracer hold all the methods for Whitted style Ray Tracing.
 
SceneView class represents a dynamic real time 3D view onto the scene.