Vertex Offset Issue

Are vertex positions only allowed to be offset up to a max of 1?

I’m trying to make a shader with a variable for the offset distance. To do this, I’ve implemented the following pseudo code:
(VertexNormal * OffsetDistance) + VertexPosition

What happens though is very odd… as the OffsetDistance is increased, its “effectiveness” is decreased the closer the visible offset distance gets to 1, but it never actually reaches 1. It’s like there’s some sort of logarithmic falloff going on, but I haven’t implemented anything like that.

could you post some pics? that would be easy for some guys to fix your possible porblems.usually we do this in object space, i Guess it may have something done with the w component:smile:

Complete code?

Are you passing the offset amount through as vertex colour? It’s clamped 0-1, so won’t be of much use to you there.