embree: Update to 4.3.1
This commit is contained in:
parent
d2f9245ddc
commit
c43eab55a4
219 changed files with 12630 additions and 6085 deletions
|
|
@ -488,11 +488,13 @@ void RaycastOcclusionCull::Scenario::update() {
|
|||
}
|
||||
|
||||
void RaycastOcclusionCull::Scenario::_raycast(uint32_t p_idx, const RaycastThreadData *p_raycast_data) const {
|
||||
RTCIntersectContext ctx;
|
||||
rtcInitIntersectContext(&ctx);
|
||||
ctx.flags = RTC_INTERSECT_CONTEXT_FLAG_COHERENT;
|
||||
|
||||
rtcIntersect16((const int *)&p_raycast_data->masks[p_idx * TILE_RAYS], ebr_scene[current_scene_idx], &ctx, &p_raycast_data->rays[p_idx]);
|
||||
RTCRayQueryContext context;
|
||||
rtcInitRayQueryContext(&context);
|
||||
RTCIntersectArguments args;
|
||||
rtcInitIntersectArguments(&args);
|
||||
args.flags = RTC_RAY_QUERY_FLAG_COHERENT;
|
||||
args.context = &context;
|
||||
rtcIntersect16((const int *)&p_raycast_data->masks[p_idx * TILE_RAYS], ebr_scene[current_scene_idx], &p_raycast_data->rays[p_idx], &args);
|
||||
}
|
||||
|
||||
void RaycastOcclusionCull::Scenario::raycast(CameraRayTile *r_rays, const uint32_t *p_valid_masks, uint32_t p_tile_count) const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue