File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2121#include < math/vec3.h>
2222#include < math/scalar.h>
2323
24+ #include < cmath>
25+
2426namespace filament {
2527
2628using namespace math ;
@@ -320,10 +322,10 @@ class GT7Curve {
320322 const float weightToe = 1 .0f - weightLinear;
321323
322324 // Shoulder mapping for highlights.
323- const float shoulder = mKa + mKb * std:: expf (x * mKc );
325+ const float shoulder = mKa + mKb * expf (x * mKc );
324326
325327 if (x < mLinearSection * mPeakIntensity ) {
326- const float toeMapped = mMidPoint * std:: powf (x / mMidPoint , mToeStrength );
328+ const float toeMapped = mMidPoint * powf (x / mMidPoint , mToeStrength );
327329 return weightToe * toeMapped + weightLinear * x;
328330 }
329331 return shoulder;
@@ -345,7 +347,7 @@ class GT7Curve {
345347 // Pre-compute constants for the shoulder region.
346348 const float k = (mLinearSection - 1 .0f ) / (mAlpha - 1 .0f );
347349 mKa = mPeakIntensity * mLinearSection + mPeakIntensity * k;
348- mKb = -mPeakIntensity * k * std:: expf (mLinearSection / k);
350+ mKb = -mPeakIntensity * k * expf (mLinearSection / k);
349351 mKc = -1 .0f / (k * mPeakIntensity );
350352 }
351353
You can’t perform that action at this time.
0 commit comments