Sorry, PrenceOfDarkness I don't know english well to write tutorials... About i. It's a cycle counter to fill gamma array. I use it in formula to provide 'linear' or 'normal' gamma ramp (try to read DX SDK help for more). Take a look at all post in this thread and try. Try to write your own formulas to provide gamma correction.