Sign in to follow this  
AndyPandyV2

normalization cube map?

Recommended Posts

Hello I have attempted to use a normalization cube map for normalizing vectors in my fragment program and while it seems to be working there is a problem when it switches from one side of the cube to another. I've looked around for mention of a wrap mode that might take care of this but I can't seem to find one... anyone know if there is a way to make it smoothly go from one face to another so as to not get this visible line? http://www.lugtug.com/ShaderPicks/cubeMap.jpg Also are normalization cube maps worth using? My performance doesn't seem to have improved at all but that could be because I'm doing a zillion texture fetches in the shader already.

Share this post


Link to post
Share on other sites
On a 6800 a normalization cubemap will probably not be a win, almost certainly not if you are doing trilinear or aniso in the cubemap.

The fastest way to normalize on your card should be half-precision normalize in shader code.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this