I have these problems:
- My scene gets blown out all the time. If I look at any dark part of the scene its blown out (see pic)
- If I move around, small changes in luminance values seem to make the ground flicker (I don't show this, but it happens)
- If I do lower my exposure to like 0.24. It does help, but then the overall scene is dark. If I then play with my lights, all I see is white spots on the terrain, but the rest of the terrain is still dark.
.... // fExposure is = 1.0 (for simplicity) // fGaussianScalar is = 1.0 (for simplicity) // l.r = average luminance value (what you see in the pictures in the box I highlighted) // l.g = max luminance value from the original texture. // final = texture color. float Lp = (fExposure / l.r) * max( final.r, max( final.g, final.b ) ) + 0.1; float LmSqr = (l.g + fGaussianScalar * l.g) * (l.g + fGaussianScalar * l.g); float toneScalar = ( Lp * ( 1.0f + ( Lp / ( LmSqr ) ) ) ) / ( 1.0f + Lp ); finalCol = (final) * toneScalar; finalCol.a = 1.0; return(saturate(finalCol));
Here is what happens when I look at a white sky:
Here is what happens when I look at the ground:
Here is what happens when I set the exposure to 0.24 and look around: