Changeset 272
- Timestamp:
- 04/30/10 16:00:46 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/osgPPU-0.4.2-rc1/Data/glsl/luminance_mipmap_fp.glsl
r270 r272 75 75 res += log(epsilon + c[3]); 76 76 77 // we prevent negative values by checking if computed log value is below 078 res = max(res, 0.0);79 80 77 // for the rest we just compute the sum of underlying values 81 78 }else … … 93 90 if (osgppu_MipmapLevelNum - osgppu_MipmapLevel < 2.0) 94 91 { 95 // exponentiate (substract 1 to correct the zero point)96 res = exp(res) - 1.0;92 // exponentiate 93 res = exp(res); 97 94 } 98 95
Note: See TracChangeset
for help on using the changeset viewer.