forked from bartvdbraak/blender
Fix T69686: Cycles OpenCL build error after recent changes
This commit is contained in:
parent
0426866eb0
commit
51334dd3a6
@ -447,7 +447,7 @@ ccl_device_inline int bsdf_sample(KernelGlobals *kg,
|
||||
}
|
||||
}
|
||||
else if (label & LABEL_DIFFUSE) {
|
||||
if (sc->N != sd->N) {
|
||||
if (!isequal_float3(sc->N, sd->N)) {
|
||||
*eval *= bump_shadowing_term((label & LABEL_TRANSMIT) ? -sd->N : sd->N, sc->N, *omega_in);
|
||||
}
|
||||
}
|
||||
@ -563,9 +563,11 @@ ccl_device_inline
|
||||
break;
|
||||
}
|
||||
if (CLOSURE_IS_BSDF_DIFFUSE(sc->type)) {
|
||||
if (!isequal_float3(sc->N, sd->N)) {
|
||||
eval *= bump_shadowing_term(sd->N, sc->N, omega_in);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
switch (sc->type) {
|
||||
case CLOSURE_BSDF_DIFFUSE_ID:
|
||||
@ -652,9 +654,11 @@ ccl_device_inline
|
||||
break;
|
||||
}
|
||||
if (CLOSURE_IS_BSDF_DIFFUSE(sc->type)) {
|
||||
if (!isequal_float3(sc->N, sd->N)) {
|
||||
eval *= bump_shadowing_term(-sd->N, sc->N, omega_in);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return eval;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user