One problem however are eluding my problem solving skills. I'm getting some banding in my specular term of the lighting. The higher power I raise the term to the worse it gets. I seams like a sampling / precision problem but I just cannot find where. I was hoping someone here could give some input on what could be causing it.
Specular term alias illustration:
http://img263.imageshack.us/img263/5167/64467714.png
http://img839.imageshack.us/img839/4169/89839862.png
Specular term calculation:
float3 f3ToEyeWS = normalize(m_f3CameraPosition - f4PosWS.xyz);float3 f3HalfWS = normalize(f3LightVectorWS + f3ToEyeWS);float fNdotH = max(0.0f, dot(f3NormalWS, f3HalfWS));float fSpecularTerm = fSpecIntensity * pow(fNdotH, fSpecPower);
I'm having a VERY hard time finding the problem here. I'm really hoping someone can help out atleast point me in a direction which could cause this to happen.
[Edited by - elurahu on October 23, 2010 6:11:23 PM]