blender/intern
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
..
atomic Cleanup: Cmake: use alias target for bf_intern_atomic 2023-07-07 15:37:02 +02:00
audaspace License headers: use SPDX-FileCopyrightText in all sources 2023-06-15 13:35:34 +10:00
clog Cleanup: CMake: Modernize bf_guardedalloc dependencies 2023-07-10 18:44:19 +02:00
cycles Cleanup: Cycles: remove SHARP distribution internally 2023-07-12 12:36:31 +02:00
dualcon License headers: use SPDX-FileCopyrightText in all sources 2023-06-15 13:35:34 +10:00
eigen License headers: use SPDX-FileCopyrightText in all sources 2023-06-15 13:35:34 +10:00
ffmpeg License headers: use SPDX-FileCopyrightText in all sources 2023-06-15 13:35:34 +10:00
ghost Fix #109886: Win32 AutoFocus Between Main Windows 2023-07-11 21:13:50 +02:00
guardedalloc Cleanup: CMake: Modernize bf_guardedalloc dependencies 2023-07-10 18:44:19 +02:00
iksolver License headers: use SPDX-FileCopyrightText in all sources 2023-06-15 13:35:34 +10:00
itasc Update Eigen to version 3.4.0 2023-07-03 15:09:20 +02:00
libc_compat License headers: use SPDX-FileCopyrightText in all sources 2023-06-15 13:35:34 +10:00
libmv License headers: use SPDX-FileCopyrightText in all sources 2023-06-15 13:35:34 +10:00
locale License headers: use SPDX-FileCopyrightText in all sources 2023-06-15 13:35:34 +10:00
mantaflow Cleanup: CMake: Modernize bf_blenlib dependencies 2023-07-10 22:04:18 +02:00
memutil Cleanup: CMake: Modernize bf_blenlib dependencies 2023-07-10 22:04:18 +02:00
mikktspace Cleanup: Make format 2023-06-15 08:25:49 +02:00
opencolorio Cleanup: CMake: Modernize bf_blenlib dependencies 2023-07-10 22:04:18 +02:00
opensubdiv Cleanup: CMake: Modernize bf_guardedalloc dependencies 2023-07-10 18:44:19 +02:00
openvdb Cleanup: CMake: Modernize bf_guardedalloc dependencies 2023-07-10 18:44:19 +02:00
quadriflow Cleanup: CMake: Modernize bf_guardedalloc dependencies 2023-07-10 18:44:19 +02:00
renderdoc_dynload License headers: use SPDX-FileCopyrightText in all sources 2023-06-15 13:35:34 +10:00
rigidbody License headers: use SPDX-FileCopyrightText in all sources 2023-06-15 13:35:34 +10:00
sky License headers: use SPDX-FileCopyrightText in all sources 2023-06-15 13:35:34 +10:00
utfconv License headers: use SPDX-FileCopyrightText in all sources 2023-06-15 13:35:34 +10:00
wayland_dynload License headers: use SPDX-FileCopyrightText in all sources 2023-06-15 13:35:34 +10:00
CMakeLists.txt License headers: use SPDX-FileCopyrightText for CMake files 2023-06-14 23:36:23 +10:00