12 # ifndef SLOPTIXPATHTRACER_H
13 # define SLOPTIXPATHTRACER_H
15 # include <curand_kernel.h>
24 class SLOptixPathtracer :
public SLOptixRaytracer
31 void setupOptix()
override;
38 SLbool getDenoiserEnabled()
const {
return _denoiserEnabled; }
39 SLint samples()
const {
return _samples; }
41 void setDenoiserEnabled(
SLbool denoiserEnabled) { _denoiserEnabled = denoiserEnabled; }
42 void samples(
SLint samples) { _samples = samples; }
44 SLfloat denoiserMS()
const {
return _denoiserMS; }
48 SLOptixCudaBuffer<curandState> _curandBuffer = SLOptixCudaBuffer<curandState>();
51 OptixDenoiser _optixDenoiser;
52 OptixDenoiserSizes _denoiserSizes;
53 SLOptixCudaBuffer<void> _denoserState;
54 SLOptixCudaBuffer<void> _scratch;
57 SLbool _denoiserEnabled =
true;
Toplevel holder of the assets meshes, materials, textures and shaders.
Active or visible camera node class.
Defines a standard CG material with textures and a shader program.
Ray class with ray and intersection properties.
The SLScene class represents the top level instance holding the scene structure.
SceneView class represents a dynamic real time 3D view onto the scene.