You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Upgrade OpenImageDenoise to v1.1.0
Upgrade OIDN to 1.1.0, the latest stable version that doesn't need the ISPC compiler. Documented the changes made during the removal of TBB and added a patch file for them.
This commit is contained in:
13
thirdparty/oidn/core/transfer_function.cpp
vendored
13
thirdparty/oidn/core/transfer_function.cpp
vendored
@@ -24,9 +24,12 @@ namespace oidn {
|
||||
float AutoexposureNode::autoexposure(const Image& color)
|
||||
{
|
||||
assert(color.format == Format::Float3);
|
||||
return 1.0f;
|
||||
// -- GODOT start --
|
||||
// We don't want to mess with TTB and we don't use autoexposure, so we disable this code
|
||||
#if 0
|
||||
// -- GODOT end --
|
||||
|
||||
/*constexpr float key = 0.18f;
|
||||
constexpr float key = 0.18f;
|
||||
constexpr float eps = 1e-8f;
|
||||
constexpr int K = 16; // downsampling amount
|
||||
|
||||
@@ -89,7 +92,11 @@ namespace oidn {
|
||||
tbb::static_partitioner()
|
||||
);
|
||||
|
||||
return (sum.second > 0) ? (key / exp2(sum.first / float(sum.second))) : 1.f;*/
|
||||
return (sum.second > 0) ? (key / exp2(sum.first / float(sum.second))) : 1.f;
|
||||
// -- GODOT start --
|
||||
#endif
|
||||
return 1.0;
|
||||
// -- GODOT end --
|
||||
}
|
||||
|
||||
} // namespace oidn
|
||||
|
||||
Reference in New Issue
Block a user