Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/svm/svm_ao.h
| Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | if(flags & NODE_AO_ONLY_LOCAL) { | ||||
| unoccluded++; | unoccluded++; | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| Intersection isect; | Intersection isect; | ||||
| if(!scene_intersect(kg, | if(!scene_intersect(kg, | ||||
| ray, | ray, | ||||
| PATH_RAY_SHADOW_OPAQUE, | PATH_RAY_SHADOW_OPAQUE, | ||||
| &isect, | &isect)) { | ||||
| NULL, | |||||
| 0.0f, 0.0f)) { | |||||
| unoccluded++; | unoccluded++; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| return ((float) unoccluded) / num_samples; | return ((float) unoccluded) / num_samples; | ||||
| } | } | ||||
| Show All 27 Lines | |||||