Sign in to follow this  

normalize() or cube map?

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

Which do you think is faster to perform normalization: normalize() GLSL function or sampling a normalization cube map?

Share this post


Link to post
Share on other sites
on anything remotely recent the normlise() function is better to use as it doesn't waste memory bandwidth and texture cache to sample a texture, plus the ALUs are now alot faster than they used to be.

It's recommended by both NV and ATI to use the function rather than a cubemap (see performance pdfs in the Forum FAQ)

Share this post


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