blender/intern/cycles/kernel/integrator
Lukas Stockner 73000c792d Cycles: Reorganize Fresnel handling in Microfacet closures
This is both a cleanup and a preparation for the Principled v2 changes.
Notable changes:
- Clearcoat weight is now folded into the closure weight, there's no reason
  to track this separately.
- There's a general-purpose helper for computing a Closure's albedo, which is
  currently used by the denoising albedo and diffuse/gloss/transmission color
  passes.
- The d/g/t color passes didn't account for closure albedo before, this means
  that e.g. metallic shaders with Principled v2 now have their color texture
  included in the glossy color pass. Also fixes T104041 (sheen albedo).
- Instead of precomputing and storing the albedo during shader setup, compute
  it when needed. This is technically redundant since we still need to compute
  it on shader setup to adjust the sample weight, but the operation is cheap
  enough that freeing up the storage seems worth it.
- Future changes (Principled v2) are easier to integrate since the Fresnel
  handling isn't all over the place anymore.
- Fresnel handling in the Multiscattering GGX code is still ugly, but since
  removing that entirely is the next step, putting effort into cleaning it up
  doesn't seem worth it.
- Apart from the d/g/t color passes, no changes to render results are expected.

Differential Revision: https://developer.blender.org/D17101
2023-02-03 21:03:48 +01:00
..
displacement_shader.h Cycles: Add basic support for using OSL with OptiX 2022-11-09 15:30:21 +01:00
guiding.h Refactor: renamed I -> wi, omega_in -> wo in Cycles 2023-01-17 18:07:13 +01:00
init_from_bake.h Cycles: Fix Metal kernel compilation 2022-12-21 04:24:22 +01:00
init_from_camera.h Cycles: switch from pretabulated 2D PMJ02 to pretabulated 4D Sobol 2022-12-14 17:39:13 +01:00
intersect_closest.h Refactor: Cycles light sampling code reorganization 2022-11-30 21:19:51 +01:00
intersect_shadow.h Cleanup: remove __KERNEL_CPU__ 2022-07-25 17:43:35 +02:00
intersect_subsurface.h Cleanup: replace state flow macros in the kernel with functions 2022-07-14 16:36:38 +02:00
intersect_volume_stack.h Cleanup: split surface/displacement/volume shader eval into separate files 2022-09-02 17:13:28 +02:00
megakernel.h Fix Cycles MNEE not working for Metal 2022-05-31 17:24:43 +02:00
mnee.h Cycles: Cleanup: Add general-purpose conversion between sin and cos 2023-01-24 17:59:29 +01:00
path_state.h Cycles: switch from pretabulated 2D PMJ02 to pretabulated 4D Sobol 2022-12-14 17:39:13 +01:00
shade_background.h Fix T103507: Distant lights partially contribute to wrong lightgroup 2023-01-06 01:40:44 +01:00
shade_light.h Refactor: Cycles light sampling code reorganization 2022-11-30 21:19:51 +01:00
shade_shadow.h Cycles: add Path Guiding on CPU through Intel OpenPGL 2022-09-27 15:56:32 +02:00
shade_surface.h Cleanup: Remove unused light_sample_is_light() function. 2023-01-20 17:36:48 +01:00
shade_volume.h Cleanup: Remove unused light_sample_is_light() function. 2023-01-20 17:36:48 +01:00
shadow_catcher.h Cleanup: refactoring of kernel film function names and organization 2022-09-02 17:13:28 +02:00
shadow_state_template.h Cycles: remove shadow pass 2022-12-05 15:52:10 +01:00
state.h Cycles: add Path Guiding on CPU through Intel OpenPGL 2022-09-27 15:56:32 +02:00
state_flow.h Fix T101529: Blender crashes when using Path Guiding 2022-10-18 13:59:12 +02:00
state_template.h Cycles: improve many lights sampling using light tree 2022-12-05 16:09:03 +01:00
state_util.h Cleanup: remove __KERNEL_CPU__ 2022-07-25 17:43:35 +02:00
subsurface.h Cycles: add Path Guiding on CPU through Intel OpenPGL 2022-09-27 15:56:32 +02:00
subsurface_disk.h Fix T89037: Cycles: Backfacing node can be wrong for lights with negative scale 2023-01-10 02:55:23 +01:00
subsurface_random_walk.h Cycles: Cleanup: Add general-purpose conversion between sin and cos 2023-01-24 17:59:29 +01:00
surface_shader.h Cycles: Reorganize Fresnel handling in Microfacet closures 2023-02-03 21:03:48 +01:00
volume_shader.h Refactor: renamed I -> wi, omega_in -> wo in Cycles 2023-01-17 18:07:13 +01:00
volume_stack.h Fix T100205: Cycles wrong volume shading with two materials in object 2022-08-04 19:02:25 +02:00