Fix: Anti-Aliasing node contrast limit has no effect

The Anti-Aliasing node contrast limit has no effect. This is due to a
typo in the code, where the threshold was used internally as the
contrast limit instead.
This commit is contained in:
Omar Emara 2024-03-14 11:53:43 +02:00
parent 61dd7cc117
commit a3587ee078
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class AntiAliasingOperation : public NodeOperation {
* algorithm expects it in the [0, 10] range. */
float get_local_contrast_adaptation_factor()
{
return node_storage(bnode()).threshold * 10.0f;
return node_storage(bnode()).contrast_limit * 10.0f;
}
/* Blender encodes the corner rounding factor in the float [0, 1] range, while the SMAA algorithm