We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aces-core/transforms/ctl/utilities/ACESutil.Lin_to_Log2_param.ctl
Line 19 in 518c27f
I think it makes more sense to handle the singularity and set lg2 = -infinity, which with proper clamping will result in 0 after normalization
lg2 = -infinity
float lg2 = (lin <= 0.0) ? -INFINITY : log2(lin / middleGrey);
Nevermind, the original works because it returns the normalized value, I see that now
Line 24 in 518c27f
logNorm
if (logNorm > 1.0) logNorm = 1.0;
i.e. clamp logNorm to [0, 1] so that lin values > middleGrey * pow(2, maxExposure) map to 1
lin
middleGrey * pow(2, maxExposure)
I may just be confused, I'm not a professional, but I've been working with shader code related to color transforms and tonemapping.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
aces-core/transforms/ctl/utilities/ACESutil.Lin_to_Log2_param.ctl
Line 19 in 518c27f
This line doesn't make sense to me, this would result in pure black having the same Log2 encoding as middle greyI think it makes more sense to handle the singularity and setlg2 = -infinity
, which with proper clamping will result in 0 after normalizationNevermind, the original works because it returns the normalized value, I see that now
aces-core/transforms/ctl/utilities/ACESutil.Lin_to_Log2_param.ctl
Line 24 in 518c27f
This line seems incomplete, it ensures the
logNorm
is >= 0, but there isn't a corresponding condition to ensurelogNorm
is <= 1i.e. clamp
logNorm
to [0, 1] so thatlin
values >middleGrey * pow(2, maxExposure)
map to 1I may just be confused, I'm not a professional, but I've been working with shader code related to color transforms and tonemapping.
The text was updated successfully, but these errors were encountered: