@@ -116,7 +116,7 @@ namespace RadeonRays
116
116
if (result != RTC_NO_ERROR)
117
117
std::cout << " Failed to create embree rtcDevice: " << result << std::endl;
118
118
119
- m_scene = rtcDeviceNewScene (m_device, RTC_SCENE_STATIC, RTC_INTERSECT1 | RTC_INTERSECT4 | RTC_INTERSECT8 | RTC_INTERSECT16 | RTC_INTERSECTN );
119
+ m_scene = rtcDeviceNewScene (m_device, RTC_SCENE_STATIC, RTC_INTERSECT1 | RTC_INTERSECT4 | RTC_INTERSECT8 | RTC_INTERSECT16 | RTC_INTERSECT_STREAM );
120
120
result = rtcDeviceGetError (m_device);
121
121
if (result != RTC_NO_ERROR)
122
122
std::cout << " Failed to create embree scene: " << result << std::endl;
@@ -171,7 +171,7 @@ namespace RadeonRays
171
171
}
172
172
m_instances.clear ();
173
173
rtcDeleteScene (m_scene); CheckEmbreeError ();
174
- m_scene = rtcDeviceNewScene (m_device, RTC_SCENE_STATIC, RTC_INTERSECT1 | RTC_INTERSECT4 | RTC_INTERSECT8 | RTC_INTERSECT16 | RTC_INTERSECTN ); CheckEmbreeError ();
174
+ m_scene = rtcDeviceNewScene (m_device, RTC_SCENE_STATIC, RTC_INTERSECT1 | RTC_INTERSECT4 | RTC_INTERSECT8 | RTC_INTERSECT16 | RTC_INTERSECT_STREAM ); CheckEmbreeError ();
175
175
176
176
for (auto i : world.shapes_ )
177
177
{
@@ -500,7 +500,7 @@ namespace RadeonRays
500
500
{
501
501
if (m_meshes.count (mesh))
502
502
return m_meshes[mesh].scene ;
503
- RTCScene result = rtcDeviceNewScene (m_device, RTC_SCENE_STATIC, RTC_INTERSECT1 | RTC_INTERSECT4 | RTC_INTERSECT8 | RTC_INTERSECT16 | RTC_INTERSECTN );
503
+ RTCScene result = rtcDeviceNewScene (m_device, RTC_SCENE_STATIC, RTC_INTERSECT1 | RTC_INTERSECT4 | RTC_INTERSECT8 | RTC_INTERSECT16 | RTC_INTERSECT_STREAM );
504
504
CheckEmbreeError ();
505
505
ThrowIf (!mesh->puretriangle (), " Only triangle meshes supported by now." );
506
506
0 commit comments