Original Post
hello i want to apply an extrude effect to a mesh so i just want to move each vertex along its normal.
this is what i try in glsl code:
vec4 v = vec4(gl_Vertex.xyz + gl_Normal * moveamount, 1);
gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * v;
unfortunately this seems to only work for vertices that are part of frontfacing polygons. all backfacing polygons seem to move inward.
this is how it looks on a sphere:

thanks for any help on this!
this is what i try in glsl code:
vec4 v = vec4(gl_Vertex.xyz + gl_Normal * moveamount, 1);
gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * v;
unfortunately this seems to only work for vertices that are part of frontfacing polygons. all backfacing polygons seem to move inward.
this is how it looks on a sphere:

thanks for any help on this!