Fix: Cycles MIS disabled unnecessarily with transparency, causing fireflies

This is a leftover from when there was a global option for transparent
shadows, but since it's now per material this makes no sense anymore.

Solution found by Olivier Maury.

Pull Request: https://projects.blender.org/blender/blender/pulls/117735
This commit is contained in:
Brecht Van Lommel 2024-02-01 21:23:28 +01:00 • committed by Philipp Oeser
parent 330f3e3c2b
commit 02b9ea7072

View file

@ -108,9 +108,6 @@ ccl_device_inline void path_state_next(KernelGlobals kg,
flag |= PATH_RAY_TERMINATE_ON_NEXT_SURFACE;
}
if (!kernel_data.integrator.transparent_shadows)
flag |= PATH_RAY_MIS_SKIP;
INTEGRATOR_STATE_WRITE(state, path, flag) = flag;
INTEGRATOR_STATE_WRITE(state, path, transparent_bounce) = transparent_bounce;
/* Random number generator next bounce. */