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;
68 OptixTraversableHandle handle;
75 unsigned int numLights;
76 float4 globalAmbientColor;
91 RAY_TYPE_RADIANCE = 0,
92 RAY_TYPE_OCCLUSION = 1,
122 ortMaterial material;
123 CUtexObject textureObject;
133 __align__(OPTIX_SBT_RECORD_ALIGNMENT)
char header[OPTIX_SBT_RECORD_HEADER_SIZE];
137 typedef SbtRecord<ortCamera> RayGenClassicSbtRecord;
138 typedef SbtRecord<ortLensCamera> RayGenDistributedSbtRecord;
139 typedef SbtRecord<ortMissData> MissSbtRecord;
140 typedef SbtRecord<ortHitData> HitSbtRecord;