Skip to content

Commit

Permalink
primary visibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zpelgrims committed Aug 5, 2022
1 parent 69efa95 commit 35cf3b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lentil_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ filter_pixel
}
AtVector cam_pos_ws = AiM4PointByMatrixMult(cam_to_world, lens_correct_scaled);
AtVector ws_direction = AiV3Normalize(cam_pos_ws - sample_pos_ws);
AtRay ray = AiMakeRay(AI_RAY_SHADOW, sample_pos_ws, &ws_direction, AiV3Dist(cam_pos_ws, sample_pos_ws), shaderglobals);
AtRay ray = AiMakeRay(AI_RAY_UNDEFINED, sample_pos_ws, &ws_direction, AiV3Dist(cam_pos_ws, sample_pos_ws), shaderglobals);
AtScrSample hit = AtScrSample();
// if (AiTrace(ray, AI_RGB_WHITE, hit) && !sample_is_from_skydome){
if (AiTraceProbe(ray, shaderglobals) && !sample_is_from_skydome){
Expand Down

0 comments on commit 35cf3b7

Please sign in to comment.