Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/kernel_shader.h
| Show First 20 Lines • Show All 453 Lines • ▼ Show 20 Lines | for(int i = 0; i < sd->num_closure; i++) { | ||||
| for(int j = i + 1; j < sd->num_closure; j++) { | for(int j = i + 1; j < sd->num_closure; j++) { | ||||
| ShaderClosure *scj = &sd->closure[j]; | ShaderClosure *scj = &sd->closure[j]; | ||||
| #ifdef __OSL__ | #ifdef __OSL__ | ||||
| if(sci->prim || scj->prim) | if(sci->prim || scj->prim) | ||||
| continue; | continue; | ||||
| #endif | #endif | ||||
| if(!(sci->type == scj->type && sci->data0 == scj->data0 && sci->data1 == scj->data1)) | if(!(sci->type == scj->type && sci->data0 == scj->data0 && sci->data1 == scj->data1 && sci->data2 == scj->data2)) | ||||
| continue; | continue; | ||||
| if(CLOSURE_IS_BSDF_OR_BSSRDF(sci->type)) { | if(CLOSURE_IS_BSDF_OR_BSSRDF(sci->type)) { | ||||
| if(sci->N != scj->N) | if(sci->N != scj->N) | ||||
| continue; | continue; | ||||
| else if(CLOSURE_IS_BSDF_ANISOTROPIC(sci->type) && sci->T != scj->T) | else if(CLOSURE_IS_BSDF_ANISOTROPIC(sci->type) && sci->T != scj->T) | ||||
| continue; | continue; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 578 Lines • Show Last 20 Lines | |||||