• Advertisement
Sign in to follow this  

normal mapping + ward aniso spec does not work

This topic is 1237 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have tried some ward and ggx spec models which work well without a normal map. When a tangent space normal map is with the light and view vectors in tangent space, my aniso models don't follow the normals at all / nearly as well as an isotropic spec.  What should I do?

float HdotT = dot(H, Tn) / aX;
float HdotB = dot(H, Bn) / aY;

float ward()
{ 
if (NdotL <= 0.f) return 0.f;

float expon = exp(-2.f * (pow(HdotT, 2.f) + pow(HdotB, 2.f)) / (1.f + HdotN));
float aniso = sqrt(max(0.f, NdotL / NdotV)) * expon;

return aniso;
}

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement