diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp b/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp index ff75fb7090f..1f5749d782c 100644 --- a/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp +++ b/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp @@ -83,7 +83,7 @@ static void FHT(fREAL *data, unsigned int M, unsigned int inverse) n2 = n >> 1; if (n > 2) { fc = dc = cos(a); - fs = ds = sqrt(1.0 - fc * fc); //sin(a); + fs = ds = sqrt(1.0 - fc * fc); // sin(a); bd = n - 2; for (bl = 1; bl < n2; bl++) { fREAL *data_nbd = &data_n[bd]; @@ -431,7 +431,7 @@ void GlareFogGlowOperation::generateGlare(float *data, fcol[1] = expf(d * cs_g); fcol[2] = expf(d * cs_b); // linear window good enough here, visual result counts, not scientific analysis - //w = (1.0f-fabs(u))*(1.0f-fabs(v)); + // w = (1.0f-fabs(u))*(1.0f-fabs(v)); // actually, Hanning window is ok, cos^2 for some reason is slower w = (0.5f + 0.5f * cosf(u * (float)M_PI)) * (0.5f + 0.5f * cosf(v * (float)M_PI)); mul_v3_fl(fcol, w); |