Fix: Cycles: Thin subsurface missing transmission flag

This caused light tree sampling to fail. It was not caught in the test
file because the light tree option was off, I now turned it on.

Pull Request: https://projects.blender.org/blender/blender/pulls/159417
This commit is contained in:
Weizhen Huang 2026-06-02 12:48:33 +02:00 • committed by Weizhen Huang
parent 80f0384224
commit 14b47094df
3 changed files with 5 additions and 5 deletions

View file

@ -211,7 +211,7 @@ ccl_device_inline void bsdf_thin_subsurface_setup(ccl_private ShaderData *sd,
bsdf->type = CLOSURE_BSDF_ROUGH_TRANSLUCENT_ID;
bsdf->N = -N;
bsdf->param = param;
sd->flag |= SD_BSDF | SD_BSDF_HAS_EVAL;
sd->flag |= SD_BSDF | SD_BSDF_HAS_EVAL | SD_BSDF_HAS_TRANSMISSION;
}
}
}

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bd78975eca77a56d407f2d541cf432f87a86bfca66ce6a5c771d56a8c24f9eaa
size 23372
oid sha256:38a76974396f85cc974dc83500c31c8405f0387f2eabafd89f5a6f184516f078
size 23391

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:745fcf62b3fdc1f3d1b3bea78946a3f6da923e4a2cb15eecad7ab4a3894ef31b
size 1215461
oid sha256:77ada39214828f652fe7d72c40635103596cd1517658ae6568e887f0dcdd60e1
size 1216905