Cycles: Don't invert backfacing IOR in generalized_schlick_bsdf

SVM doesn't do this, neither does the OSL testrender from what I can tell, and
in other cases we already handle the inversion on the OSL side if needed.
This commit is contained in:
Lukas Stockner
2023-09-14 03:18:57 +02:00
parent ee6b39ae86
commit 65d56143ab

View File

@@ -333,9 +333,6 @@ ccl_device void osl_closure_generalized_schlick_bsdf_setup(
else {
bsdf->ior = ior_from_F0(average(closure->f0));
}
if (sd->flag & SD_BACKFACING) {
bsdf->ior = 1.0f / bsdf->ior;
}
bool preserve_energy = false;