Jump to content
  • Advertisement
Sign in to follow this  
zhengrong

flaw of dxt5_nm

This topic is 2587 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

when we sample normal map from pixel shader, we get interpolated vector, its length is always shorter than 1 if we have set linear filter, right?

for regular normalmap, we just re-normalize it, but for normalmap compressed as dxt5_nm, we have only xy channel and have to do somthing like z=sqrt(1-x*x-y*y),

so I guess z is always greater than it should be, because xy vector is always shorter than it should be.

am I right?

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!