Changeset 272


Ignore:
Timestamp:
04/30/10 16:00:46 (8 years ago)
Author:
art
Message:
  • hdr example, luminance value corrected slightly
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/osgPPU-0.4.2-rc1/Data/glsl/luminance_mipmap_fp.glsl

    r270 r272  
    7575        res += log(epsilon + c[3]); 
    7676 
    77         // we prevent negative values by checking if computed log value is below 0 
    78         res = max(res, 0.0); 
    79  
    8077    // for the rest we just compute the sum of underlying values 
    8178    }else 
     
    9390    if (osgppu_MipmapLevelNum - osgppu_MipmapLevel < 2.0) 
    9491    { 
    95         // exponentiate (substract 1 to correct the zero point) 
    96         res = exp(res) - 1.0; 
     92        // exponentiate 
     93        res = exp(res); 
    9794    } 
    9895 
Note: See TracChangeset for help on using the changeset viewer.