Archived

This topic is now archived and is closed to further replies.

NxH^16 approxamation in pixel shader

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

Hi, I''m messing around with the shaders provided with the rendermonkey beta. In the bumpmapping effects group, there is an effect which calculates the specular component (NxH^k where k[0,64]) using an approximation. (instead of grabbing it from a lookup texture), by making this assumption: [NxH^2 -.75]*4 = NxH^16 I can''t seem to figure out where this approximation comes from. Is it a truncated taylor series of NxH^16 ? Any ideas would be appriciated. Thanks, Lucas

Share this post


Link to post
Share on other sites