blender/intern/cycles/kernel/svm
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
..
ao.h Cleanup: minor cleanups for sample pattern code 2022-09-01 14:57:39 +02:00
aov.h Cleanup: refactoring of kernel film function names and organization 2022-09-02 17:13:28 +02:00
attribute.h Cycles: simplify handling of ray differentials 2022-08-15 13:48:02 +02:00
bevel.h Fix T89037: Cycles: Backfacing node can be wrong for lights with negative scale 2023-01-10 02:55:23 +01:00
blackbody.h Fix T98036: Cycles blackbody inaccurate for low temperature and wide gamut 2022-05-23 22:07:59 +02:00
brick.h Cycles: add non-uniform scaling to spot light size 2023-02-03 18:51:14 +01:00
brightness.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
bump.h Cycles: simplify handling of ray differentials 2022-08-15 13:48:02 +02:00
camera.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
checker.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
clamp.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
closure.h Cycles: Reorganize Fresnel handling in Microfacet closures 2023-02-03 21:03:48 +01:00
color_util.h Nodes: Add Exclusion color mix mode 2022-12-16 15:42:41 +00:00
convert.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
displace.h Refactor: renamed I -> wi, omega_in -> wo in Cycles 2023-01-17 18:07:13 +01:00
fractal_noise.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
fresnel.h Refactor: renamed I -> wi, omega_in -> wo in Cycles 2023-01-17 18:07:13 +01:00
gamma.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
geometry.h Refactor: renamed I -> wi, omega_in -> wo in Cycles 2023-01-17 18:07:13 +01:00
gradient.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
hsv.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
ies.h Cycles: Add support for OSL texture intrinsic on the GPU 2023-01-19 19:14:48 +01:00
image.h Cleanup: use make_float4(f) zero_float4() to simplify code 2022-03-23 20:06:12 +01:00
invert.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
light_path.h Cleanup: typos in comments. 2022-02-26 02:15:22 +01:00
magic.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
map_range.h Cycles: unify math functions names 2022-06-23 15:02:53 +02:00
mapping.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
mapping_util.h Cycles: unify math functions names 2022-06-23 15:02:53 +02:00
math.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
math_util.h Cycles: unify math functions names 2022-06-23 15:02:53 +02:00
mix.h Node: Mix node 2022-08-31 00:13:57 +01:00
musgrave.h Cleanup: format 2022-08-30 16:22:49 +10:00
node_types_template.h Node: Mix node 2022-08-31 00:13:57 +01:00
noise.h Refactor: replace Cycles sse/avx types by vectorized float4/int4/float8/int8 2022-11-08 12:28:40 +01:00
noisetex.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
normal.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
ramp.h Cleanup: renaming and consistency for kernel data 2022-06-20 12:30:48 +02:00
ramp_util.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
sepcomb_color.h Cleanup: format 2022-05-05 17:33:43 +10:00
sepcomb_hsv.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
sepcomb_vector.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
sky.h Fix T103094: Cycles ignores small suns in Nishita sky 2023-01-19 18:31:54 -06:00
svm.h Fix T103094: Cycles ignores small suns in Nishita sky 2023-01-19 18:31:54 -06:00
tex_coord.h Refactor: renamed I -> wi, omega_in -> wo in Cycles 2023-01-17 18:07:13 +01:00
types.h Cycles: Reorganize Fresnel handling in Microfacet closures 2023-02-03 21:03:48 +01:00
value.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
vector_rotate.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
vector_transform.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
vertex_color.h Cycles: Add Hydra render delegate 2022-03-23 16:39:05 +01:00
voronoi.h Cycles: unify math functions names 2022-06-23 15:02:53 +02:00
voxel.h Cleanup: use make_float4(f) zero_float4() to simplify code 2022-03-23 20:06:12 +01:00
wave.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
wavelength.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
white_noise.h Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00
wireframe.h Refactor: renamed I -> wi, omega_in -> wo in Cycles 2023-01-17 18:07:13 +01:00