Weizhen Huang
0b3efc9d8c
Cleanup: Cycles: remove SHARP distribution internally
...
this option was already unselectable in the UI, and is treated as GGX
with zero roughness. Upon building the shader graph, we only convert a
closure to `SHARP` when option Filter Glossy is not used and the
roughness is below certain threshold. The benefit is that we can avoid
calling `bsdf_eval()` or return earlier in some cases, but the thresholds
vary across files.
This patch removes `SHARP` closures altogether, and checks if the
roughness value is below a global threshold `BSDF_ROUGHNESS_THRESH`
after blurring, in which case the flag `SD_BSDF_HAS_EVAL` is not set.
The global threshold is set to be `5e-7f` because threshold smaller than
that seems to have caused problem in the past (c6aa0217ac ). Also removes
a bunch of functions, variables and arguments that were only there
because we converted closures under certain conditions.
Pull Request: https://projects.blender.org/blender/blender/pulls/109902
2023-07-12 12:36:31 +02:00
..
2023-06-14 16:53:23 +10:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2023-03-20 14:35:02 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2023-06-14 16:53:23 +10:00
2023-06-14 16:53:23 +10:00
2022-05-05 17:33:43 +10:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-03-21 17:41:17 +01:00
2023-07-06 18:13:22 +02:00
2023-06-14 16:53:23 +10:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-11-11 17:10:30 +01:00
2023-07-12 12:36:31 +02:00
2023-06-05 02:20:57 +02:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2023-06-14 16:53:23 +10:00
2023-03-29 16:50:54 +02:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2023-01-06 19:21:33 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2023-06-14 16:53:23 +10:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-12-16 15:42:41 +00:00
2022-08-31 00:13:57 +01:00
2022-08-31 00:13:57 +01:00
2022-08-31 00:13:57 +01:00
2022-12-16 15:42:41 +00:00
2022-08-26 17:27:43 +02:00
2022-02-11 17:47:34 +01:00
2023-06-14 16:53:23 +10:00
2023-05-02 09:37:49 +10:00
2022-02-11 17:47:34 +01:00
2022-03-07 17:35:48 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2023-06-05 02:20:57 +02:00
2023-02-13 23:32:53 +01:00
2022-02-11 17:47:34 +01:00
2023-06-14 16:53:23 +10:00
2023-07-12 12:36:31 +02:00
2022-03-21 17:41:17 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-05-05 17:33:43 +10:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2023-04-17 17:30:47 +02:00
2022-02-11 17:47:34 +01:00
2022-11-11 17:10:30 +01:00
2023-06-07 12:31:36 +02:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-03-21 17:41:17 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2023-07-06 18:13:22 +02:00
2023-07-10 17:42:24 +02:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2022-02-11 17:47:34 +01:00
2023-07-10 17:42:24 +02:00