12 # ifndef SLOPTIXDEFINITIONS_H
13 # define SLOPTIXDEFINITIONS_H
14 # include <vector_types.h>
15 # include <optix_types.h>
17 # include <curand_kernel.h>
23 unsigned int samplesX;
24 unsigned int samplesY;
32 float4 specular_color;
33 float4 transmissiv_color;
34 float4 emissive_color;
46 float4 specular_color;
77 OptixTraversableHandle handle;
84 unsigned int numLights;
85 float4 globalAmbientColor;
100 RAY_TYPE_RADIANCE = 0,
101 RAY_TYPE_OCCLUSION = 1,
131 ortMaterial material;
132 CUtexObject textureObject;
142 __align__(OPTIX_SBT_RECORD_ALIGNMENT)
char header[OPTIX_SBT_RECORD_HEADER_SIZE];
146 typedef SbtRecord<ortCamera> RayGenClassicSbtRecord;
147 typedef SbtRecord<ortLensCamera> RayGenDistributedSbtRecord;
148 typedef SbtRecord<ortMissData> MissSbtRecord;
149 typedef SbtRecord<ortHitData> HitSbtRecord;